From 3b984aed39e86b00bf7bd7c2e6ed9d6911f5e97b Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Thu, 3 Jan 2013 23:59:54 +0000 Subject: Added a silly script to setup developer environment --- extras/create_link.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 extras/create_link.sh (limited to 'extras/create_link.sh') diff --git a/extras/create_link.sh b/extras/create_link.sh new file mode 100755 index 00000000..1f1dab29 --- /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 + -- cgit v1.2.1