[Pkg-awstats-commits] [SCM] awstats Debian packaging branch, master, updated. debian/6.9.dfsg-1-204-gd8e9c1a
Sergey B Kirpichev
skirpichev at gmail.com
Mon Feb 22 15:05:59 UTC 2010
The following commit has been merged in the master branch:
commit d8e9c1ab34aedc3d712cc635ca13a3eaaf09d0f6
Author: Sergey B Kirpichev <skirpichev at gmail.com>
Date: Mon Feb 22 18:05:22 2010 +0300
Handle /etc/awstats/awstats.conf in update.sh and buildstatic.sh
diff --git a/debian/buildstatic.sh b/debian/buildstatic.sh
index 7dbf08a..8a74759 100755
--- a/debian/buildstatic.sh
+++ b/debian/buildstatic.sh
@@ -13,7 +13,9 @@ BUILDSTATICPAGES=/usr/share/awstats/tools/awstats_buildstaticpages.pl
cd /etc/awstats
-for c in `ls -1 awstats.*.conf | sed 's/^awstats\.\(.*\)\.conf/\1/'`
+for c in awstats \
+ `/bin/ls -1 awstats.*.conf 2>/dev/null | \
+ /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'`
do
Y=`date +%Y`
m=`date +%m`
diff --git a/debian/update.sh b/debian/update.sh
index 642dbc0..4c6f872 100755
--- a/debian/update.sh
+++ b/debian/update.sh
@@ -11,7 +11,9 @@ AWSTATS=/usr/lib/cgi-bin/awstats.pl
cd /etc/awstats
-for c in `ls -1 awstats.*.conf | sed 's/^awstats\.\(.*\)\.conf/\1/'`
+for c in awstats \
+ `/bin/ls -1 awstats.*.conf 2>/dev/null | \
+ /bin/sed 's/^awstats\.\(.*\)\.conf/\1/'`
do
$AWSTATS -config=$c -update
done >/dev/null
--
awstats Debian packaging
More information about the Pkg-awstats-commits
mailing list