diff options
Diffstat (limited to 'network/awstats/patches/awstats_configure.pl.patch')
-rw-r--r-- | network/awstats/patches/awstats_configure.pl.patch | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/network/awstats/patches/awstats_configure.pl.patch b/network/awstats/patches/awstats_configure.pl.patch index 3f8995ca5a..67871229ac 100644 --- a/network/awstats/patches/awstats_configure.pl.patch +++ b/network/awstats/patches/awstats_configure.pl.patch @@ -1,6 +1,6 @@ ---- tools/awstats_configure.pl.orig 2013-11-06 23:39:01.487947740 -0600 -+++ tools/awstats_configure.pl 2013-11-07 07:17:47.975586091 -0600 -@@ -28,11 +28,11 @@ +--- tools/awstats_configure.pl.orig 2014-01-29 09:06:10.000000000 -0600 ++++ tools/awstats_configure.pl 2014-03-01 09:09:03.516604388 -0600 +@@ -27,11 +27,11 @@ $AWSTATS_MODEL_CONFIG $AWSTATS_DIRDATA_PATH /; @@ -17,7 +17,7 @@ $AWSTATS_MODEL_CONFIG='/etc/awstats/awstats.model.conf'; # Used only when configure ran on linux $AWSTATS_DIRDATA_PATH='/var/lib/awstats'; # Used only when configure ran on linux -@@ -306,7 +306,7 @@ +@@ -305,7 +305,7 @@ print "\n-----> Running OS detected: $OSLib{$OS}\n"; if ($OS eq 'linux') { @@ -26,16 +26,18 @@ $AWSTATS_PATH=~s/tools[\\\/]?$//; $AWSTATS_PATH=~s/[\\\/]$//; if ($AWSTATS_PATH ne '/usr/local/awstats') { -@@ -660,6 +660,12 @@ - print "\n-----> Restart Web server with '$command'\n"; - my $ret=`$command`; - print "$ret"; -+ } if (-f "/etc/slackware-version") { +@@ -653,7 +653,13 @@ + # ---------------------------------- + if ($WebServerChanged) { + if ($OS eq 'linux') { +- if (-f "/etc/debian_version") { ++ if (-f "/etc/slackware-version") { + # We are on Slackware :) + my $command="/etc/rc.d/rc.httpd restart"; + print "\n-----> Restart Web server with '$command'\n"; + my $ret=`$command`; + print "$ret"; - } elsif (-x "/sbin/service") { - # We are not on debian - my $command="/sbin/service httpd restart"; ++ } elsif (-f "/etc/debian_version") { + # We are on debian + my $command="/etc/init.d/apache restart"; + print "\n-----> Restart Web server with '$command'\n"; |