Bugzilla – Bug 189283
SuSEconfig.susehelp overwrites /etc/apache2/conf.d/susehelp.conf
Last modified: 2007-05-07 14:17:10 UTC
After installing the help-system and setup the machine as documentation server (by setting DOC_SERVER="yes" in /etc/sysconfig/apache2.conf), I configured the parameter DOC_ALLOW="192.168.72.0/24 localhost" in /etc/sysconfig/susehelp. By running SuSEconfig the file /etc/apache2/conf.d/susehelp.conf shows up the new 'allowed hosts'. Running SuSEconfig again - w/o changes to DOC_ALLOW - the allowed hosts are restored to localhost. I tracked down the problem to the script SuSEconfig.susehelp, where OLD_ALLOW and DOC_ALLOW are checked to prevent running sed useless, but it's always copied from the original in a DOC_SERVER="yes" configuration. Below is a diff of the version I'm using, which works for me - but I'm not a shell programmer... 71,74c71 < # only copy if changed < if [ "$OLD_ALLOW" != "$DOC_ALLOW" ] ; then < cp $httpdconf_working $apacheconfdir/susehelp.conf < fi --- > cp $httpdconf_working $apacheconfdir/susehelp.conf
I'll review this shortly
The diff is correct but since we have removed SuSEconfig.susehelp in 10.2 and later I won't fix this. Do you need an online update for 10.1 for this?
No, thank's. I've got it working for me (and update the box anyway in a short time).
That's that then. Thanks for the report.