[enh] postinst : only respond to configure

This commit is contained in:
Julien Malik 2015-09-09 18:37:52 +02:00 committed by kload
parent 659b3126cc
commit 17e4872a98

29
debian/postinst vendored
View file

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
#!/bin/sh
# postinst script for yunohost-config-metronome
set -e
do_configure() {
TMP=/usr/share/yunohost/yunohost-config/moulinette TMP=/usr/share/yunohost/yunohost-config/moulinette
if [ ! -d /etc/yunohost ]; if [ ! -d /etc/yunohost ];
@ -54,3 +59,27 @@ then
fi fi
yunohost app ssowatconf yunohost app ssowatconf
fi fi
}
# 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>
# * <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)
do_configure
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac