mirror of
https://codeberg.org/gwh/slackbuilds.git
synced 2024-11-16 19:51:19 +01:00
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=""
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue