mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-15 15:50:22 -04:00
Install if downloaded mod tarball is present
This commit is contained in:
@@ -17,18 +17,11 @@ fi
|
|||||||
|
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
export DEBIAN_FRONTEND="noninteractive"
|
||||||
|
|
||||||
CALIBRE_RELEASE="$(cat /CALIBRE_RELEASE)"
|
if [[ -e /tmp/calibre.txz ]]; then
|
||||||
if [ -z ${CALIBRE_RELEASE+x} ]; then
|
|
||||||
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
|
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -e /usr/bin/calibre-server ]] || [[ "${CALIBRE_RELEASE}" != "$(cat /config/.CALIBRE_RELEASE || :)" ]]; then
|
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/calibre.txz \
|
/tmp/calibre.txz \
|
||||||
-C /app/calibre
|
-C /app/calibre
|
||||||
rm /tmp/calibre.txz
|
|
||||||
echo "Installing Calibre version $(cat /CALIBRE_RELEASE)"
|
echo "Installing Calibre version $(cat /CALIBRE_RELEASE)"
|
||||||
/app/calibre/calibre_postinstall
|
/app/calibre/calibre_postinstall
|
||||||
echo "${CALIBRE_RELEASE}" > /config/.CALIBRE_RELEASE
|
rm /tmp/calibre.txz
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user