3cc0677c46226b8839ae1318b17eb46e256d2feb
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.050641 seconds and 3 git commands to generate.