~bkerensa/ubuntu/raring/puppet/new-upstream-release

« back to all changes in this revision

Viewing changes to ext/debian/puppetmaster-passenger.postrm

  • Committer: Benjamin Kerensa
  • Date: 2012-11-21 23:50:52 UTC
  • mfrom: (1.1.30)
  • Revision ID: bkerensa@ubuntu.com-20121121235052-ah7nzabp77sh69gb
New Upstream Release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
case "$1" in
 
4
    purge)
 
5
        if dpkg-statoverride --list /usr/share/puppet/rack/puppetmasterd/config.ru >/dev/null 2>&1
 
6
        then
 
7
            dpkg-statoverride --remove /usr/share/puppet/rack/puppetmasterd/config.ru
 
8
        fi
 
9
        # Remove the puppetmaster site configuration on purge
 
10
        rm -f /etc/apache2/sites-available/puppetmaster
 
11
        ;;
 
12
    remove)
 
13
        # Disable the puppetmaster apache2 site configuration on package removal
 
14
        a2dissite puppetmaster
 
15
        if [ -x "/etc/init.d/apache2" ]; then
 
16
            if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
 
17
                invoke-rc.d apache2 force-reload || exit $?
 
18
            else
 
19
                /etc/init.d/apache2 force-reload || exit $?
 
20
            fi
 
21
        fi
 
22
        ;;
 
23
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
24
        ;;
 
25
    *)
 
26
        echo "postrm called with unknown argument \`$1'" >&2
 
27
        exit 1
 
28
 
 
29
esac
 
30
 
 
31
#DEBHELPER#
 
32
 
 
33
exit 0