[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4431: cern-httpd cron.weekly file doesn't spot when lines commented



Package: cern-httpd
Version: 3.0-7

/etc/cron.weekly/cern-httpd contains:
 grep -Eqi '^\W*port\W+[[:digit:]]+' /etc/cern-httpd.conf \
    || grep -Eqi '^\W*servertype\W+standalone+' /etc/cern-httpd.conf \
    && /usr/sbin/cern-httpd -restart 2> /dev/null

This is obviously done to try to spot inetd-run servers, but the
regexps match even if there are lines like
 # Port	80
in /etc/cern-httpd.conf.

Ian.



Reply to: