[Pkg-awstats-commits] [SCM] awstats Debian packaging branch, master, updated. debian/7.0_dfsg-1-1-g3863aab
Sergey B Kirpichev
skirpichev at gmail.com
Wed Mar 16 15:55:08 UTC 2011
The following commit has been merged in the master branch:
commit 3863aab0fd7bd21ccccd4edf8fd77b747d71d5f9
Author: Sergey B Kirpichev <skirpichev at gmail.com>
Date: Wed Mar 16 18:52:12 2011 +0300
Process the /etc/awstats/awstats.conf file in update.sh/buildstatic.sh only if it's exists (Closes: #613524)
diff --git a/debian/buildstatic.sh b/debian/buildstatic.sh
index 3e50a4f..200f02b 100755
--- a/debian/buildstatic.sh
+++ b/debian/buildstatic.sh
@@ -29,7 +29,8 @@ AWSTATS_LANG="en"
cd /etc/awstats
for c in `/bin/ls -1 awstats.*.conf 2>/dev/null | \
- /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` awstats
+ /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` \
+ `[ -f /etc/awstats/awstats.conf ] && echo awstats`
do
mkdir -p /var/cache/awstats/$c/$YEAR/$MONTH/
diff --git a/debian/update.sh b/debian/update.sh
index 1fd6e78..f62078f 100755
--- a/debian/update.sh
+++ b/debian/update.sh
@@ -22,7 +22,8 @@ AWSTATS_NICE=10
cd /etc/awstats
for c in `/bin/ls -1 awstats.*.conf 2>/dev/null | \
- /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` awstats
+ /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'` \
+ `[ -f /etc/awstats/awstats.conf ] && echo awstats`
do
if ! nice -n $AWSTATS_NICE $AWSTATS \
-config=$c \
--
awstats Debian packaging
More information about the Pkg-awstats-commits
mailing list