[Pkg-awstats-commits] [awstats] 03/03: Install prerotate script (Closes: #714231)
Sergey Kirpichev
sk-guest at moszumanska.debian.org
Fri Feb 7 14:08:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
sk-guest pushed a commit to branch master
in repository awstats.
commit 02a556ff26a60c19c46a1f69189577cc3a59a60d
Author: Sergey B Kirpichev <skirpichev at gmail.com>
Date: Thu Jan 23 15:41:49 2014 +0400
Install prerotate script (Closes: #714231)
---
debian/awstats.install | 2 +-
debian/prerotate.sh | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/debian/awstats.install b/debian/awstats.install
index 66f339c..dc8b771 100644
--- a/debian/awstats.install
+++ b/debian/awstats.install
@@ -1,5 +1,6 @@
debian/default/* etc/default/
debian/awstats.conf* etc/awstats/
+debian/prerotate.sh etc/logrotate.d/httpd-prerotate/awstats
docs/*.html usr/share/doc/awstats/html/
docs/*.css usr/share/doc/awstats/html/
docs/images/ usr/share/doc/awstats/html/
@@ -14,5 +15,4 @@ debian/update.sh usr/share/awstats/tools/
tools/logresolvemerge.pl usr/share/awstats/tools/
tools/awstats_buildstaticpages.pl usr/share/awstats/tools/
debian/buildstatic.sh usr/share/awstats/tools/
-
debian/icons/firefox.png usr/share/awstats/icon/browser/
diff --git a/debian/prerotate.sh b/debian/prerotate.sh
new file mode 100755
index 0000000..e531689
--- /dev/null
+++ b/debian/prerotate.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+UPDATE_SCRIPT=/usr/share/awstats/tools/update.sh
+if [ -x $UPDATE_SCRIPT ]
+then
+ su -l -c $UPDATE_SCRIPT www-data
+fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/awstats.git
More information about the Pkg-awstats-commits
mailing list