aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xextras/create_link.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/extras/create_link.sh b/extras/create_link.sh
index 1f1dab2..b2a3549 100755
--- a/extras/create_link.sh
+++ b/extras/create_link.sh
@@ -12,9 +12,15 @@ then
rm /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy
fi
+if [ -f /usr/bin/apanel.pl ]
+then
+ rm usr/bin/apanel.pl
+fi
+
pushd .
cd ..
cp extras/org.mageia.policykit.pkexec.adminpanel.policy /usr/share/polkit-1/actions/
ln -s $PWD/AdminPanel `rpm --eval %perl_privlib`
+ln -s $PWD/apanel.pl /usr/bin
popd