[Pkg-awstats-commits] [SCM] awstats Debian packaging branch, master, updated. debian/6.9.5.dfsg-2-5-g7774d56
Sergey B Kirpichev
skirpichev at gmail.com
Tue May 18 14:44:19 UTC 2010
The following commit has been merged in the master branch:
commit 93f45ab53a11e38d8ac953a82dcdce6f7a2483c3
Author: Sergey B Kirpichev <skirpichev at gmail.com>
Date: Tue May 18 18:32:36 2010 +0400
Set default language (en) for static reports generation
diff --git a/debian/buildstatic.sh b/debian/buildstatic.sh
index e233aea..a2fa769 100755
--- a/debian/buildstatic.sh
+++ b/debian/buildstatic.sh
@@ -29,13 +29,12 @@ do
Y=`date +%Y`
m=`date +%m`
mkdir -p /var/cache/awstats/$c/$Y/$m/
- AL=${AWSTATS_LANG:-en}
if ! nice -n $AWSTATS_NICE $BUILDSTATICPAGES \
-config=$c \
-year=$Y \
-month=$m \
- -lang=$AL \
- -staticlinksext=${AL}.html \
+ -lang=$AWSTATS_LANG \
+ -staticlinksext=${AWSTATS_LANG}.html \
-dir=/var/cache/awstats/$c/$Y/$m/ >$ERRFILE 2>&1
then
cat $ERRFILE >&2 # an error occurred
diff --git a/debian/default/awstats b/debian/default/awstats
index 44513a2..1960aaf 100644
--- a/debian/default/awstats
+++ b/debian/default/awstats
@@ -11,4 +11,4 @@ AWSTATS_ENABLE_BUILDSTATICPAGES="yes"
# This variable control the language of all static html reports. Set
# one to appropriate two-letter language code (default to en).
-#AWSTATS_LANG=ru
+AWSTATS_LANG="en"
diff --git a/debian/update.sh b/debian/update.sh
index 17ebba7..75f2454 100755
--- a/debian/update.sh
+++ b/debian/update.sh
@@ -14,6 +14,7 @@ ERRFILE=`mktemp /tmp/awstats.XXXXXXXXXX`
trap 'rm -f $ERRFILE' INT QUIT TERM EXIT
[ -f $AWSTATS ] || exit 1
+
[ -r "$DEFAULT" ] && . "$DEFAULT"
cd /etc/awstats
--
awstats Debian packaging
More information about the Pkg-awstats-commits
mailing list