fix rc.calibre-server for latest version

This commit is contained in:
Gwenhael Le Moine 2017-12-21 22:17:21 +01:00
parent 9c05acfca6
commit 6f5e4bac07
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -7,11 +7,12 @@ PORT=8081
AUTH=""
# uncomment and adapt to enable authtentication
# AUTH=" --username=\"$USER\" --password=\"password\""
OPTIONS=" --enable-local-writes"
OPTIONS=" --enable-local-write"
LOGFILE=/home/$USER/.calibre-server.log
start() {
echo "Starting Calibre server..."
su $USER -c "calibre-server --with-library=\"$CALIBRE_LIBRARY_PATH\" -p $PORT --pidfile=$PIDFILE --daemonize $AUTH $OPTIONS" &
su $USER -c "calibre-server --port=$PORT --pidfile=$PIDFILE --log=$LOGFILE --daemonize $AUTH $OPTIONS \"$CALIBRE_LIBRARY_PATH\"" &
if [ $? -ne 0 ]; then
echo "Could not start calibre-server."
fi