From 98ddc0511b521dd27e0062fc6d67d40d562d7e46 Mon Sep 17 00:00:00 2001 From: chbmb Date: Wed, 4 Aug 2021 22:38:43 +0100 Subject: [PATCH] Add libxdamage & standardise docker mod --- root/etc/cont-init.d/95-apt-get | 3 +++ root/etc/cont-init.d/{60-calibre-config => 98-calibre} | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 root/etc/cont-init.d/95-apt-get rename root/etc/cont-init.d/{60-calibre-config => 98-calibre} (55%) diff --git a/root/etc/cont-init.d/95-apt-get b/root/etc/cont-init.d/95-apt-get new file mode 100644 index 0000000..5b1a21c --- /dev/null +++ b/root/etc/cont-init.d/95-apt-get @@ -0,0 +1,3 @@ +#!/usr/bin/with-contenv bash + +apt-get update diff --git a/root/etc/cont-init.d/60-calibre-config b/root/etc/cont-init.d/98-calibre similarity index 55% rename from root/etc/cont-init.d/60-calibre-config rename to root/etc/cont-init.d/98-calibre index 243b06d..9508dc5 100644 --- a/root/etc/cont-init.d/60-calibre-config +++ b/root/etc/cont-init.d/98-calibre @@ -5,5 +5,10 @@ if [ ! -e /usr/bin/calibre-server ]; then fi if [ ! -L /usr/lib/x86_64-linux-gnu/libGL.so.1 ]; then - apt update && apt install -y libgl1-mesa-glx + apt-get install -y libgl1-mesa-glx fi + +if [ ! -L /usr/lib/x86_64-linux-gnu/libxdamage.so.1 ]; then + apt-get install -y libxdamage1 +fi +