debian: handle hobo-redeploy trigger (#9405)
This commit is contained in:
parent
0bf4869b0c
commit
cbbe6c68d5
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
interest-noawait hobo-redeploy
|
Loading…
Reference in New Issue