mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-19 01:46:10 -04:00
30 lines
1.0 KiB
Plaintext
Executable File
30 lines
1.0 KiB
Plaintext
Executable File
#!/usr/bin/with-contenv bash
|
|
|
|
if [[ ! -f /usr/bin/apt ]]; then
|
|
cat <<-EOF
|
|
********************************************************
|
|
********************************************************
|
|
* *
|
|
* !!!! *
|
|
* universal-calibre mod is only supported on images *
|
|
* using an Ubuntu base image. *
|
|
* *
|
|
********************************************************
|
|
********************************************************
|
|
EOF
|
|
exit 0
|
|
fi
|
|
|
|
export DEBIAN_FRONTEND="noninteractive"
|
|
|
|
if [[ -e /calibre.txz ]]; then
|
|
mkdir -p /app/calibre
|
|
tar xf \
|
|
/calibre.txz \
|
|
-C /app/calibre
|
|
echo "Installing Calibre version $(cat /CALIBRE_RELEASE)"
|
|
/app/calibre/calibre_postinstall
|
|
rm /calibre.txz
|
|
echo "**** The 2 warnings above about setting up completion and desktop integration are expected and harmless. You can safely ignore them. ****"
|
|
fi
|