Sha256: ca52257a820819eda49bf1089a623df21d2e1d4a0fa29757a9e8c402c5c63c5f

Contents?: true

Size: 655 Bytes

Versions: 63

Compression:

Stored size: 655 Bytes

Contents

#!/bin/sh -e

case "$1" in
    purge)
		# Remove puppetd.conf (used in > 0.24)
		rm -f /etc/puppet/puppetd.conf

		# Remove puppet state directory created by the postinst script.
		# This directory can be removed without causing harm 
		# according to upstream documentation.
		rm -rf /var/lib/puppet/state
		if [ -d /var/lib/puppet ]; then
			rmdir --ignore-fail-on-non-empty /var/lib/puppet
		fi

		# Remove puppet log files
		rm -rf /var/log/puppet/
		;;
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)


        ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1

esac

#DEBHELPER#

exit 0

Version data entries

63 entries across 63 versions & 2 rubygems

Version Path
puppet-3.0.0 ext/debian/puppet-common.postrm
puppet-3.0.0.rc8 ext/debian/puppet-common.postrm
puppet-3.0.0.rc7 ext/debian/puppet-common.postrm