Merge branch 'master' of github.com:cycojesus/slackbuilds

This commit is contained in:
Gwenhael Le Moine 2018-02-02 15:13:46 +01:00
commit 05aad76f24
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