tidy up stuff

This commit is contained in:
sparklyballs 2017-07-17 17:36:32 +01:00
parent a316ea3a66
commit 3cd48c3d5f
3 changed files with 6 additions and 6 deletions

View File

@ -19,7 +19,7 @@ RUN \
# install runtime packages
apk add --no-cache \
imagemagick && \
imagemagick && \
# install calibre-web
mkdir -p \

View File

@ -1,13 +1,14 @@
#!/usr/bin/with-contenv bash
# put database in /config
# copy database to /config if not exists
[[ ! -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
# create symlink for database
[[ ! -L /app/calibre-web/app.db ]] && \
ln -s /config/app.db /app/calibre-web/app.db
# permissions
chown -R abc:abc \
/config \
/app/calibre-web
/app/calibre-web

View File

@ -4,4 +4,3 @@ cd /app/calibre-web || exit
exec \
s6-setuidgid abc python /app/calibre-web/cps.py