debian: run collectstatic on start (#12362)

This commit is contained in:
Frédéric Péters 2016-06-29 08:01:07 +02:00
parent fdcc42658b
commit f673e4793d
1 changed files with 2 additions and 0 deletions

View File

@ -38,10 +38,12 @@ fi
#
d_start() {
if [ $CONFIG_FILE ]; then
$DAEMON -f $CONFIG_FILE collectstatic $OPTIONS
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \
--exec $DAEMON -- -f $CONFIG_FILE start $OPTIONS
else
$DAEMON collectstatic $OPTIONS
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \
--exec $DAEMON -- start $OPTIONS