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
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
This page took 0.040962 seconds and 5 git commands to generate.