tidy up symlinks

This commit is contained in:
sparklyballs 2017-07-17 18:49:38 +01:00
parent 33c84d3fc2
commit af3caaa1e6

View File

@ -1,10 +1,10 @@
#!/usr/bin/with-contenv bash
# copy database to /config if not exists
[[ ! -e /config/app.db ]] && \
cp /defaults/app.db /config/app.db \
# create symlinks for database and log
[[ ! -f /config/app.db ]] && \
cp /defaults/app.db /config/app.db
[[ -f /app/calibre-web/app.db ]] && \
rm /app/calibre-web/app.db
[[ ! -L /app/calibre-web/app.db ]] && \
ln -s /config/app.db /app/calibre-web/app.db