summaryrefslogtreecommitdiffstats
path: root/debian
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
parent384b4f158d89421ae6ed2e5c46dbf4b43c47ad39 (diff)
downloadwelco-a4571e0c693f307bbc9497d139f190519a0f6536.zip
welco-a4571e0c693f307bbc9497d139f190519a0f6536.tar.gz
welco-a4571e0c693f307bbc9497d139f190519a0f6536.tar.bz2
debian: handle hobo-redeploy trigger (#9405)
Diffstat (limited to 'debian')
-rw-r--r--debian/welco.postinst5
-rw-r--r--debian/welco.triggers1
2 files changed, 6 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)
;;
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