Projet

Général

Profil

0001-debian-run-collectstatic-when-gadjo-is-updated-25360.patch

Frédéric Péters, 19 juillet 2018 09:54

Télécharger (1,12 ko)

Voir les différences:

Subject: [PATCH] debian: run collectstatic when gadjo is updated (#25360)

 debian/wcs.postinst | 2 ++
 debian/wcs.triggers | 1 +
 2 files changed, 3 insertions(+)
debian/wcs.postinst
8 8
GROUP=$NAME
9 9
CONFIG_DIR=/etc/wcs
10 10
CONFIG_FILE=/etc/wcs/wcs.cfg
11
MANAGE_SCRIPT="/usr/bin/$NAME-manage"
11 12

  
12 13
# Read config file if it is present.
13 14
if [ -r /etc/default/$NAME ]
......
48 49

  
49 50
  triggered)
50 51
    su -s /bin/sh -c "$COMMAND hobo_deploy --redeploy" $USER
52
    su -s /bin/sh -c "$MANAGE_SCRIPT collectstatic" $USER
51 53
    exit 0
52 54
  ;;
53 55

  
debian/wcs.triggers
1 1
interest-noawait hobo-redeploy
2
interest-noawait /usr/lib/python2.7/dist-packages/gadjo/static
2
-