aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extras/README5
-rwxr-xr-xextras/create_link.sh20
2 files changed, 25 insertions, 0 deletions
diff --git a/extras/README b/extras/README
index 9adf705..a0b6241 100644
--- a/extras/README
+++ b/extras/README
@@ -13,3 +13,8 @@ Add AdminPanel to the include path (for developers)
symlink trunk/AdminPanel to /usr/lib/perl5/<currentversion>/AdminPanel
where currentversion could be for example 5.16.2
+
+Additional notes:
+1. if you have installed old org.mageia.policykit.pkexec.policy remove it from /usr/share/polkit-1/actions/
+2. you can use at your own risk our script from this directory create_link.sh
+
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
+