summaryrefslogtreecommitdiff
path: root/ext/debian/puppetmaster.postinst
blob: f37fcf76d96a8e8c04d585e4044b2ca58d625cea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# Remove renamed configuration files which are now handled by other
# packages
if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then

    dpkg-maintscript-helper rm_conffile \
        /etc/logrotate.d/puppetmaster 2.7.16-1puppetlabs1 puppetmaster -- "$@"

# For systems with dpkg < 1.15.7-2
else

    if [ -f /etc/logrotate.d/puppetmaster ]; then
        rm /etc/logrotate.d/puppetmaster || true
    fi
fi

#DEBHELPER#