f6c39d110842ce09444c490dc46fdb9563d03cde
3 # convert the old, PHP based config file to /etc/iserv/config
5 OLDCFG
=/usr
/share
/iserv
/www
/inc
/mod_error-reporter
/config.inc
6 NEWCFG
=/etc
/iserv
/config
11 if [ -n "`grep 'setMailNotify(' $OLDCFG|grep false`" ]; then
12 sed 's/^ErrorReporterMailNotify.\+/ErrorReporterMailNotify = false/' $NEWCFG > $TMPCFG
13 mv $TMPCFG $NEWCFG ||
(echo "Could not save config!" && exit 255);
17 mailNotifyAddress
=`grep setMailNotifyAddr $OLDCFG | sed -e 's/\$cfgErrors->setMailNotifyAddr//' | tr -d '();'|tr "'();" '"'`
18 if [ -n "$mailNotifyAddress" ]; then
19 sed "s/^ErrorReporterMailAddress.\+/ErrorReporterMailAddress = $mailNotifyAddress/" $NEWCFG > $TMPCFG
20 mv $TMPCFG $NEWCFG ||
(echo "Could not save config!" && exit 255);
23 mv $OLDCFG $OLDCFG.converted
24 [ -e "$OLDCFG" ] && echo "Done. Please remove the old config file ($OLDCFG) by hand!" && exit 255;
This page took 0.040915 seconds and 3 git commands to generate.