docker-calibre-web/root/etc/cont-init.d/30-config
2017-06-07 07:33:43 +01:00

14 lines
275 B
Plaintext

#!/usr/bin/with-contenv bash
# put database in /config
[[ ! -e /config/app.db ]] && \
cp /defaults/app.db /config/app.db \
# link to /app/calibre-web/app.db
ln -s /config/app.db /app/calibre-web/app.db
# permissions
chown -R abc:abc \
/config \
/app/calibre-web