2017-03-20 18:34:52 -07:00
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
2017-06-06 23:33:43 -07:00
|
|
|
# put database in /config
|
|
|
|
[[ ! -e /config/app.db ]] && \
|
|
|
|
cp /defaults/app.db /config/app.db \
|
2017-03-20 18:34:52 -07:00
|
|
|
|
2017-06-06 23:33:43 -07:00
|
|
|
# link to /app/calibre-web/app.db
|
|
|
|
ln -s /config/app.db /app/calibre-web/app.db
|
2017-03-20 18:34:52 -07:00
|
|
|
|
2017-06-06 23:33:43 -07:00
|
|
|
# permissions
|
2017-03-20 18:34:52 -07:00
|
|
|
chown -R abc:abc \
|
2017-06-06 23:33:43 -07:00
|
|
|
/config \
|
|
|
|
/app/calibre-web
|