File: puppetmaster.postinst

package info (click to toggle)
puppet 3.7.2-4%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 18,912 kB
  • ctags: 13,168
  • sloc: ruby: 210,410; sh: 2,050; xml: 1,554; lisp: 300; makefile: 142; python: 108; sql: 103; yacc: 72
file content (20 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (6)
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#