debian: replace dash in wsgi name

This commit is contained in:
Frédéric Péters 2016-05-18 08:53:21 +02:00
parent 0fb0430a36
commit 46cc7401a7
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ SCRIPTNAME=/etc/init.d/$NAME
BIND=unix:$RUN_DIR/$NAME.sock
WORKERS=5
TIMEOUT=30
WSGI_NAME=$(echo $NAME | sed -e s/-/_/)
PFWB_THESAURUS_SETTINGS_FILE=/usr/lib/$NAME/debian_config.py
MANAGE_SCRIPT="/usr/bin/$NAME-manage"
@ -47,7 +48,7 @@ DAEMON_ARGS=${DAEMON_ARGS:-"--pid $PIDFILE \
--worker-class=sync \
--timeout=$TIMEOUT \
--name $NAME \
$NAME.wsgi:application"}
$WSGI_NAME.wsgi:application"}
# Load the VERBOSE setting and other rcS variables
. /lib/init/vars.sh