summaryrefslogtreecommitdiffstats
path: root/awstats/awstats.install
blob: 76589edbd4906915707231107553422679683f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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