Files
2024-11-18 10:11:53 -05:00

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