Files
2024-09-11 15:37:32 +01:00

28 lines
913 B
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 /usr/bin/calibre-server ]]; then
tar xf \
/tmp/calibre.txz \
-C /app/calibre
rm /tmp/calibre.txz
echo "Installing Calibre version $(cat /CALIBRE_RELEASE)"
/app/calibre/calibre_postinstall
fi