From: eldy <> Date: Sun, 27 Mar 2005 14:50:22 +0000 (+0000) Subject: Fix: Bad detection of macos 10.3+ X-Git-Tag: AWSTATS_WEBMIN_1_6_BETA~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8693f27829959605bc6d2bbd01ece5864e2c91cf;p=thirdparty%2FAWStats.git Fix: Bad detection of macos 10.3+ --- diff --git a/tools/awstats_configure.pl b/tools/awstats_configure.pl index 8158822a..88b11987 100644 --- a/tools/awstats_configure.pl +++ b/tools/awstats_configure.pl @@ -292,8 +292,8 @@ print "Read the AWStats documentation (docs/index.html).\n"; # Detect OS type # -------------- if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='linux'; $CR=''; } -elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; } -elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; } +if ("$^O" !~ /linux/i && -d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; } +if ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; } if (! $OS) { print "configure.pl was not able to detect your OS. You must configure AWStats\n"; print "manually following the setup documentation (docs/index.html).\n";