Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN \
libxi6 \
libxslt1.1 \
python3-venv \
sqlite3 \
xdg-utils && \
echo "**** install calibre-web ****" && \
if [ -z ${CALIBREWEB_RELEASE+x} ]; then \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ RUN \
libxi6 \
libxslt1.1 \
python3-venv \
sqlite3 \
xdg-utils && \
echo "**** install calibre-web ****" && \
if [ -z ${CALIBREWEB_RELEASE+x} ]; then \
Expand Down
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ init_diagram: |
"calibre-web:latest" <- Base Images
# changelog
changelogs:
- {date: "07.01.25:", desc: "Set kepubify path by default."}
- {date: "05.12.24:", desc: "Rebase to noble."}
- {date: "26.08.24:", desc: "Add new dep, xdg-utils."}
- {date: "07.07.24:", desc: "Add new dep, libmagic1."}
Expand Down
Binary file removed root/defaults/app.db
Binary file not shown.
18 changes: 18 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-calibre-web-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,21 @@ mkdir -p /app/calibre-web/cps/cache
lsiown -R abc:abc \
/config \
/app/calibre-web/cps/cache

export CALIBRE_DBPATH=/config

if [[ ! -f /config/app.db ]]; then
echo "First time run, creating app.db..."
cd /app/calibre-web && s6-setuidgid abc python3 /app/calibre-web/cps.py -d > /dev/null 2>&1
# handle app.db updates for kepubify and ext binary path
# borrowed from crocodilestick because it's a better solution than what i was doing
sqlite3 /config/app.db <<EOS
update settings set config_kepubifypath='/usr/bin/kepubify' where config_kepubifypath is NULL or LENGTH(config_kepubifypath)=0;
EOS

if [[ $? == 0 ]]; then
echo "Successfully set kepubify paths in '/config/app.db'!"
elif [[ $? > 0 ]]; then
echo "Could not set binary paths for '/config/app.db' (see errors above)."
fi
fi
Loading