-
-
Notifications
You must be signed in to change notification settings - Fork 288
/
Copy pathrun
executable file
·29 lines (26 loc) · 1.04 KB
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/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