From a4571e0c693f307bbc9497d139f190519a0f6536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 10 Jan 2016 11:56:15 +0100 Subject: [PATCH] debian: handle hobo-redeploy trigger (#9405) --- debian/welco.postinst | 5 +++++ debian/welco.triggers | 1 + 2 files changed, 6 insertions(+) create mode 100644 debian/welco.triggers diff --git a/debian/welco.postinst b/debian/welco.postinst index ee073d7..00302fe 100644 --- a/debian/welco.postinst +++ b/debian/welco.postinst @@ -6,6 +6,7 @@ NAME="welco" USER=$NAME GROUP=$NAME CONFIG_DIR="/etc/$NAME" +MANAGE_SCRIPT="/usr/bin/$NAME-manage" case "$1" in configure) @@ -30,6 +31,10 @@ case "$1" in fi ;; + triggered) + su -s /bin/sh -c "$MANAGE_SCRIPT hobo_deploy --redeploy" $USER + ;; + abort-upgrade|abort-remove|abort-deconfigure) ;; diff --git a/debian/welco.triggers b/debian/welco.triggers new file mode 100644 index 0000000..718b667 --- /dev/null +++ b/debian/welco.triggers @@ -0,0 +1 @@ +interest-noawait hobo-redeploy