debian: run collectstatic when gadjo is updated (#25360)
This commit is contained in:
parent
c16edc1fc8
commit
d8b1af174a
|
@ -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 +1,2 @@
|
|||
interest-noawait hobo-redeploy
|
||||
interest-noawait /usr/lib/python2.7/dist-packages/gadjo/static
|
||||
|
|
Loading…
Reference in New Issue