integ/config/puppet-modules/puppet-lvm-1.4.0/debian/deb_folder/puppet-lvm.postinst
Charles Short bcefa6b6b9 Add puppet-lvm debian package
Add packaging infrastructure to build the puppetlabs-lvm
puppet module.

Ported all pactches from Centos to Debian.

Story: 2009101
Task: 43398

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: I767b18a68f8721ec7f932597cf3d46a9bdd5baef
2021-10-25 11:41:06 -04:00

40 lines
1.1 KiB
Bash

#!/bin/sh
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
update-alternatives --install /usr/share/puppet/modules/lvm puppet-module-lvm \
/usr/share/puppet/modules.available/puppet-lvm 500
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0