Quote:
Originally Posted by johnelle
Ok so now it's exported. Makes no difference. Still doesn't work
Code:
respawn
env USER='<user>'
env PASSWORD='<pass>'
env LIBRARY_PATH='/mnt/synnas/Books/Calibre'
env CALIBRE_OVERRIDE_DATABASE_PATH='/media/cdb/metadata.db'
env PORT='888'
script
export CALIBRE_OVERRIDE_DATABASE_PATH
exec /usr/bin/calibre-server --with-library $LIBRARY_PATH --auto-reload \
--port $PORT --username $USER --password $PAS$
end script
|
As far as I can tell from the man pages, that exports nothing. The "env" command seems to set the environment in a subshell. Try deleting all occurences of "env", for example leaving
Code:
LIBRARY_PATH='/mnt/synnas/Books/Calibre'
instead of
Code:
env LIBRARY_PATH='/mnt/synnas/Books/Calibre'
Then do the export.
Alternatively do
Code:
export CALIBRE_OVERRIDE_DATABASE_PATH=/media/cdb/metadata.db