debian: run collectstatic on start (#12362)
This commit is contained in:
parent
fdcc42658b
commit
f673e4793d
|
@ -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
|
||||
|
|
Reference in New Issue