diff options
author | Florian Pritz <bluewind@xssn.at> | 2009-11-01 11:50:07 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2009-11-01 11:50:07 +0100 |
commit | f49a0527334a7fc7f41d7b6b97783aac30c9a302 (patch) | |
tree | a26907676f3028d3575cccadc3905649d5b6181f /awstats/awstats.install | |
parent | 84f2ca8a80d6a9bc12020bcd21c836c74c5240da (diff) | |
download | aur-packages-f49a0527334a7fc7f41d7b6b97783aac30c9a302.tar.gz aur-packages-f49a0527334a7fc7f41d7b6b97783aac30c9a302.tar.xz |
add awstats
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'awstats/awstats.install')
-rw-r--r-- | awstats/awstats.install | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/awstats/awstats.install b/awstats/awstats.install new file mode 100644 index 0000000..76589ed --- /dev/null +++ b/awstats/awstats.install @@ -0,0 +1,32 @@ +# arg 1: the new package version +post_install() { +echo \(/usr/local/awstats/docs/index.html\) to setup AWStats in 3 steps: +echo Step 1 : Install and Setup with awstats_configure.pl +echo or add : Include /etc/httpd/conf/extra/httpd-awstats.conf +echo to /etc/httpd/conf/httpd.conf +echo Step 2 : Build/Update Statistics with awstats.pl +echo Step 3 : Read Statistics +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install $1 + + chmod -R og+r /var/lib/awstats + chown -R web-awstats:web-awstats /var/lib/awstats +} + +pre_remove() { + /bin/true +} + +post_remove() { + /bin/true +} + +op=$1 +shift + +$op $* +# vim: ts=2: ft=sh |