Merge branch 'master' of github.com:cycojesus/slackbuilds
This commit is contained in:
commit
05aad76f24
1 changed files with 3 additions and 2 deletions
|
@ -7,11 +7,12 @@ PORT=8081
|
||||||
AUTH=""
|
AUTH=""
|
||||||
# uncomment and adapt to enable authtentication
|
# uncomment and adapt to enable authtentication
|
||||||
# AUTH=" --username=\"$USER\" --password=\"password\""
|
# AUTH=" --username=\"$USER\" --password=\"password\""
|
||||||
OPTIONS=" --enable-local-writes"
|
OPTIONS=" --enable-local-write"
|
||||||
|
LOGFILE=/home/$USER/.calibre-server.log
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo "Starting Calibre server..."
|
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
|
if [ $? -ne 0 ]; then
|
||||||
echo "Could not start calibre-server."
|
echo "Could not start calibre-server."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue