~ubuntu-branches/ubuntu/edgy/awstats/edgy

« back to all changes in this revision

Viewing changes to debian/awstats.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2004-05-05 05:12:07 UTC
  • Revision ID: james.westby@ubuntu.com-20040505051207-ren3kcn31tp97db6
Tags: 6.0-4
Really fix bug#247265. Really closes: Bug#247265 (thanks to Edward
J. Shornock <ed@crazeecanuck.homelinux.net>).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
case "$1" in
 
6
    configure)
 
7
        if [ ! -d /var/lib/awstats ]; then
 
8
                if [ -d /var/cache/awstats ]; then
 
9
                        mv /var/cache/awstats /var/lib/awstats
 
10
                fi
 
11
                mkdir -p /var/lib/awstats
 
12
                chown www-data.www-data /var/lib/awstats
 
13
                chmod 750 /var/lib/awstats
 
14
        fi
 
15
    ;;
 
16
 
 
17
    abort-upgrade|abort-remove|abort-deconfigure)
 
18
 
 
19
    ;;
 
20
 
 
21
    *)
 
22
        echo "postinst called with unknown argument \`$1'" >&2
 
23
        exit 0
 
24
    ;;
 
25
esac
 
26
 
 
27
#DEBHELPER#
 
28
 
 
29
exit 0
 
30
 
 
31