authentic2.init: create cache directory

This commit is contained in:
Benjamin Dauvergne 2014-04-03 15:45:13 +02:00
parent 4f5b1ef454
commit fce7263f67
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ DESC=authentic2
NAME=authentic2
DAEMON=/usr/bin/gunicorn
PID_DIR=/var/run/$NAME
CACHE_DIR=/var/cache/$NAME
LOG_DIR=/var/log/$NAME
PIDFILE=$PID_DIR/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
@ -60,6 +61,11 @@ if [ ! -d $PID_DIR ]; then
install -d -m 755 -o $USER -g $GROUP $PID_DIR
fi
# Create cache directory
if [ ! -d $CACHE_DIR ]; then
install -d -m 755 -o $USER -g $GROUP $CACHE_DIR
fi
#
# Function that starts the daemon/service
#