mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] postinst : only respond to configure
This commit is contained in:
parent
659b3126cc
commit
17e4872a98
1 changed files with 75 additions and 46 deletions
29
debian/postinst
vendored
29
debian/postinst
vendored
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue