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