Skip to content

Commit ef884b9

Browse files
committed
Install if downloaded mod tarball is present
1 parent 9535f3b commit ef884b9

File tree

1 file changed

+2
-9
lines changed
  • root/etc/s6-overlay/s6-rc.d/init-mod-universal-calibre-setup

1 file changed

+2
-9
lines changed

root/etc/s6-overlay/s6-rc.d/init-mod-universal-calibre-setup/run

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,11 @@ fi
1717

1818
export 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
3427
fi

0 commit comments

Comments
 (0)