File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
root/etc/s6-overlay/s6-rc.d/init-mod-universal-calibre-setup Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1717
1818export DEBIAN_FRONTEND="noninteractive"
1919
20- CALIBRE_RELEASE="$(cat /CALIBRE_RELEASE)"
21- if [ -z ${CALIBRE_RELEASE+x} ]; then
22- CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
23- | awk '/tag_name/{print $4;exit}' FS='[""]'); \
24- fi
25-
26- if [[ ! -e /usr/bin/calibre-server ]] || [[ "${CALIBRE_RELEASE}" != "$(cat /config/.CALIBRE_RELEASE || :)" ]]; then
20+ if [[ -e /tmp/calibre.txz ]]; then
2721 tar xf \
2822 /tmp/calibre.txz \
2923 -C /app/calibre
30- rm /tmp/calibre.txz
3124 echo "Installing Calibre version $(cat /CALIBRE_RELEASE)"
3225 /app/calibre/calibre_postinstall
33- echo "${CALIBRE_RELEASE}" > /config/.CALIBRE_RELEASE
26+ rm /tmp/calibre.txz
3427fi
You can’t perform that action at this time.
0 commit comments