tidy up stuff
This commit is contained in:
parent
a316ea3a66
commit
3cd48c3d5f
@ -19,7 +19,7 @@ RUN \
|
||||
|
||||
# install runtime packages
|
||||
apk add --no-cache \
|
||||
imagemagick && \
|
||||
imagemagick && \
|
||||
|
||||
# install calibre-web
|
||||
mkdir -p \
|
||||
|
@ -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
|
||||
|
@ -4,4 +4,3 @@ cd /app/calibre-web || exit
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc python /app/calibre-web/cps.py
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user