symlink log to /config

This commit is contained in:
sparklyballs 2017-07-17 18:40:54 +01:00
parent 29ae2d1f2a
commit 33c84d3fc2

View File

@ -4,10 +4,18 @@
[[ ! -e /config/app.db ]] && \
cp /defaults/app.db /config/app.db \
# create symlink for database
# create symlinks for database and log
[[ ! -L /app/calibre-web/app.db ]] && \
ln -s /config/app.db /app/calibre-web/app.db
[[ ! -f /config/calibre-web.log ]] && \
touch /config/calibre-web.log
[[ -f /app/calibre-web/calibre-web.log ]] && \
rm /app/calibre-web/calibre-web.log
[[ ! -L /app/calibre-web/calibre-web.log ]] && \
ln -s /config/calibre-web.log /app/calibre-web/calibre-web.log
# permissions
chown -R abc:abc \
/config \