summaryrefslogtreecommitdiffstats
path: root/debian/welco.postinst
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2016-01-10 10:56:15 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2016-01-10 10:56:15 (GMT)
commita4571e0c693f307bbc9497d139f190519a0f6536 (patch)
treee7a4b1e6028b49111f8ad5ff03e166fe1a51fabc /debian/welco.postinst
parent384b4f158d89421ae6ed2e5c46dbf4b43c47ad39 (diff)
downloadwelco-a4571e0c693f307bbc9497d139f190519a0f6536.zip
welco-a4571e0c693f307bbc9497d139f190519a0f6536.tar.gz
welco-a4571e0c693f307bbc9497d139f190519a0f6536.tar.bz2
debian: handle hobo-redeploy trigger (#9405)
Diffstat (limited to 'debian/welco.postinst')
-rw-r--r--debian/welco.postinst5
1 files changed, 5 insertions, 0 deletions
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)
;;