From: root@agathe.wilhelm-gym.net Date: Tue, 2 Sep 2008 10:29:59 +0000 (+0200) Subject: fixed conversion of admin groups in maint/update-config.sh X-Git-Tag: REL_8.09.13~9 X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/commitdiff_plain/801e022b0a6f1f7fa5ad09e86acdff0fd99d04a9 fixed conversion of admin groups in maint/update-config.sh --- diff --git a/maint/update-config.sh b/maint/update-config.sh index 43e3820..6b6f324 100755 --- a/maint/update-config.sh +++ b/maint/update-config.sh @@ -15,7 +15,7 @@ chown www-data $NEWCFG || exit 1; cat $OLDCFG|grep -v setAdminGroups|grep -v setLog|grep -v @package > $NEWCFG # convert admin groups to group privileges -ADMGROUPS=$(grep setAdminGroups $OLDCFG|sed -e 's/,//g' -e "s/.*array[^(]*(\([^)]*\)).*/\1/" -e "s/[\"\']//g") +ADMGROUPS=$(grep setAdminGroups $OLDCFG|sed -e 's/,//g' -e "s/.*array[^(]*(\([^)]*\)).*/\1/" -e "s/[\"\']/ /g") for i in $ADMGROUPS; do psql -c "INSERT INTO privileges_assign (act,privilege) VALUES('$i','mod_errorreporter_admin');" > /dev/null || exit 1; echo "added adminship for group '$i'"