[Pkg-awstats-commits] [SCM] awstats Debian packaging branch, master, updated. debian/6.9.5.dfsg-2-10-g196806c

Jonas Smedegaard dr at jones.dk
Wed May 19 11:39:02 UTC 2010


The following commit has been merged in the master branch:
commit d6d4b4776b5a787ae122058b9f02002b55e2feac
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Wed May 19 13:21:54 2010 +0200

    Reverse test logic when sourcing /etc/default/awstats to not fail if missing.

diff --git a/debian/buildstatic.sh b/debian/buildstatic.sh
index 87be522..4530a0f 100755
--- a/debian/buildstatic.sh
+++ b/debian/buildstatic.sh
@@ -22,7 +22,7 @@ trap 'rm -f $ERRFILE' INT QUIT TERM EXIT
 AWSTATS_NICE=10
 AWSTATS_ENABLE_BUILDSTATICPAGES="yes"
 AWSTATS_LANG="en"
-[ -r "$DEFAULT" ] && . "$DEFAULT"
+[ ! -r "$DEFAULT" ] || . "$DEFAULT"
 
 [ "$AWSTATS_ENABLE_BUILDSTATICPAGES" == "yes" ] || exit 0
 
diff --git a/debian/update.sh b/debian/update.sh
index 4fbcc20..6aa7f21 100755
--- a/debian/update.sh
+++ b/debian/update.sh
@@ -17,7 +17,7 @@ trap 'rm -f $ERRFILE' INT QUIT TERM EXIT
 
 # Set defaults.
 AWSTATS_NICE=10
-[ -r "$DEFAULT" ] && . "$DEFAULT"
+[ ! -r "$DEFAULT" ] || . "$DEFAULT"
 
 cd /etc/awstats
 

-- 
awstats Debian packaging



More information about the Pkg-awstats-commits mailing list