debian: run collectstatic when gadjo is updated (#25360)

This commit is contained in:
Frédéric Péters 2018-07-19 09:34:57 +02:00
parent c16edc1fc8
commit d8b1af174a
2 changed files with 3 additions and 0 deletions

2
debian/wcs.postinst vendored
View File

@ -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,7 @@ case "$1" in
triggered)
su -s /bin/sh -c "$COMMAND hobo_deploy --redeploy" $USER
su -s /bin/sh -c "$MANAGE_SCRIPT collectstatic" $USER
exit 0
;;

1
debian/wcs.triggers vendored
View File

@ -1 +1,2 @@
interest-noawait hobo-redeploy
interest-noawait /usr/lib/python2.7/dist-packages/gadjo/static