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