From 801e022b0a6f1f7fa5ad09e86acdff0fd99d04a9 Mon Sep 17 00:00:00 2001 From: "root@agathe.wilhelm-gym.net" Date: Tue, 2 Sep 2008 12:29:59 +0200 Subject: [PATCH] fixed conversion of admin groups in maint/update-config.sh --- maint/update-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'" -- 2.20.1