aboutsummaryrefslogtreecommitdiffstats
path: root/extras/create_link.sh
diff options
context:
space:
mode:
Diffstat (limited to 'extras/create_link.sh')
-rwxr-xr-xextras/create_link.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/extras/create_link.sh b/extras/create_link.sh
new file mode 100755
index 0000000..1f1dab2
--- /dev/null
+++ b/extras/create_link.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+apanel=`rpm --eval %perl_privlib`/AdminPanel
+
+if [ -L $apanel ]
+then
+ rm $apanel
+fi
+
+if [ -f /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy ]
+then
+ rm /usr/share/polkit-1/actions/org.mageia.policykit.pkexec.adminpanel.policy
+fi
+
+pushd .
+cd ..
+cp extras/org.mageia.policykit.pkexec.adminpanel.policy /usr/share/polkit-1/actions/
+ln -s $PWD/AdminPanel `rpm --eval %perl_privlib`
+popd
+