~ubuntu-branches/ubuntu/oneiric/munin/oneiric-updates

« back to all changes in this revision

Viewing changes to debian/munin.postinst

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-05-29 19:05:02 UTC
  • mfrom: (8.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090529190502-tcfkztuv244ke17s
Tags: 1.2.6-12ubuntu1
* Merge from debian unstable, remaining changes:
  - Suggest libdate-manip-perl (LP: #306274)
  - Recommend "cron". (LP: #225061)
  - Update maintainer according to spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
                adduser --group --system --no-create-home \
10
10
                        --home /var/lib/munin munin;
11
11
        fi      
 
12
        # workaround bug (#531021) in xen-tools
 
13
        if ! getent group munin >/dev/null; then
 
14
                addgroup --system munin
 
15
                adduser munin munin
 
16
        fi
12
17
}
13
18
 
14
19
fixperms() {
15
20
        dpkg-statoverride --list /var/log/munin >/dev/null || \
16
21
                dpkg-statoverride --update --add munin adm 0750 /var/log/munin
17
 
        dpkg-statoverride --list /var/run/munin >/dev/null || \
18
 
                dpkg-statoverride --update --add munin root 0755 /var/run/munin
19
22
        dpkg-statoverride --list /var/www/munin >/dev/null || \
20
23
                dpkg-statoverride --update --add munin munin 0755 /var/www/munin
21
24
        dpkg-statoverride --list /var/lib/munin >/dev/null || \