
theory at bricolage
Apr 30, 2008, 10:18 AM
Post #1 of 1
(104 views)
Permalink
|
|
[8212] If an `httpd.conf` directive doesn't exist, add it!
|
|
Revision: 8212 Author: theory Date: 2008-04-30 10:18:10 -0700 (Wed, 30 Apr 2008) ViewCVS: http://viewsvn.bricolage.cc/?rev=8212&view=rev Log Message: ----------- If an `httpd.conf` directive doesn't exist, add it! Modified Paths: -------------- bricolage/trunk/inst/conf.pl Modified: bricolage/trunk/inst/conf.pl =================================================================== --- bricolage/trunk/inst/conf.pl 2008-04-30 16:28:50 UTC (rev 8211) +++ bricolage/trunk/inst/conf.pl 2008-04-30 17:18:10 UTC (rev 8212) @@ -122,7 +122,7 @@ my ($conf, $var, $val) = @_; return unless defined $val and $val ne ''; unless ($$conf =~ s/^(\s*)#?(\s*$var\s+=\s*).*$/$1$2$val/mi) { - hard_fail("Unable to set bricolage.conf variable $var to \"$val\"."); + $$conf .= "$var = $val\n"; } }
|