| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# see: dh_installdeb(1) |
| 4 |
|
| 5 |
set -e |
| 6 |
|
| 7 |
# summary of how this script can be called: |
| 8 |
# * <postinst> `configure' <most-recently-configured-version> |
| 9 |
# * <old-postinst> `abort-upgrade' <new version> |
| 10 |
# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
| 11 |
# <new-version> |
| 12 |
# * <postinst> `abort-remove' |
| 13 |
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
| 14 |
# <failed-install-package> <version> `removing' |
| 15 |
# <conflicting-package> <version> |
| 16 |
# for details, see http://www.debian.org/doc/debian-policy/ or |
| 17 |
# the debian-policy package |
| 18 |
|
| 19 |
case "$1" in |
| 20 |
configure) |
| 21 |
update-alternatives --install /usr/share/puppet/modules/memcached puppet-module-memcached /usr/share/puppet/modules.available/saz-memcached 500 |
| 22 |
;; |
| 23 |
|
| 24 |
abort-upgrade|abort-remove|abort-deconfigure) |
| 25 |
;; |
| 26 |
|
| 27 |
*) |
| 28 |
echo "postinst called with unknown argument \`$1'" >&2 |
| 29 |
exit 1 |
| 30 |
;; |
| 31 |
esac |
| 32 |
|
| 33 |
# dh_installdeb will replace this with shell code automatically |
| 34 |
# generated by other debhelper scripts. |
| 35 |
|
| 36 |
#DEBHELPER# |
| 37 |
|
| 38 |
exit 0 |