fixed conversion of admin groups in maint/update-config.sh
authorroot@agathe.wilhelm-gym.net <root@agathe.wilhelm-gym.net>
Tue, 2 Sep 2008 10:29:59 +0000 (12:29 +0200)
committerroot@agathe.wilhelm-gym.net <root@agathe.wilhelm-gym.net>
Tue, 2 Sep 2008 10:29:59 +0000 (12:29 +0200)
maint/update-config.sh

index 43e3820..6b6f324 100755 (executable)
@@ -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
 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'"
 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'"
This page took 0.028395 seconds and 4 git commands to generate.