debian: handle hobo-redeploy trigger (#9405)

This commit is contained in:
Frédéric Péters 2016-01-10 11:42:44 +01:00
parent 0bf4869b0c
commit cbbe6c68d5
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ NAME="fargo"
USER=$NAME
GROUP=$NAME
CONFIG_DIR="/etc/$NAME"
MANAGE_SCRIPT="/usr/bin/$NAME-manage"
case "$1" in
configure)
@ -33,6 +34,10 @@ case "$1" in
abort-upgrade|abort-remove|abort-deconfigure)
;;
triggered)
su -s /bin/sh -c "$MANAGE_SCRIPT check_hobos --redeploy" $USER
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1

1
debian/fargo.triggers vendored Normal file
View File

@ -0,0 +1 @@
interest-noawait hobo-redeploy