From b3be49e551118a262c879ba0a460ecc1d6f8bf62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 19 Jul 2018 09:34:57 +0200 Subject: [PATCH] debian: run collectstatic when gadjo is updated (#25360) --- debian/wcs.postinst | 3 +++ debian/wcs.triggers | 1 + 2 files changed, 4 insertions(+) diff --git a/debian/wcs.postinst b/debian/wcs.postinst index aa3e1351..b60ecabc 100644 --- a/debian/wcs.postinst +++ b/debian/wcs.postinst @@ -8,6 +8,7 @@ USER=$NAME GROUP=$NAME CONFIG_DIR=/etc/wcs CONFIG_FILE=/etc/wcs/wcs.cfg +MANAGE_SCRIPT="/usr/bin/$NAME-manage" # Read config file if it is present. if [ -r /etc/default/$NAME ] @@ -48,6 +49,8 @@ case "$1" in triggered) su -s /bin/sh -c "$COMMAND hobo_deploy --redeploy" $USER + su -s /bin/sh -c "$COMMAND hobo_deploy --redeploy" $USER + su -s /bin/sh -c "$MANAGE_SCRIPT collectstatic" $USER exit 0 ;; diff --git a/debian/wcs.triggers b/debian/wcs.triggers index 718b6672..295ead96 100644 --- a/debian/wcs.triggers +++ b/debian/wcs.triggers @@ -1 +1,2 @@ interest-noawait hobo-redeploy +interest-noawait /usr/lib/python2.7/dist-packages/gadjo/static -- 2.18.0