From 428b616681486d07fbf906a31d4374ab8da01957 Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Tue, 19 Dec 2017 15:02:48 +0300 Subject: [PATCH] Add detailed message for msttcorefonts failed to download This is workaround of https://bugs.launchpad.net/ubuntu/+source/msttcorefonts/+bug/1465721 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6602cf5..c344370 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,8 @@ RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \ ttf-mscorefonts-installer \ xvfb \ zlib1g && \ - [ $(ls -l /usr/share/fonts/truetype/msttcorefonts | wc -l) -eq 61 ] && \ + if [ $(ls -l /usr/share/fonts/truetype/msttcorefonts | wc -l) -ne 61 ]; \ + then echo 'msttcorefonts failed to download'; exit 1; fi && \ sudo -u postgres psql -c "CREATE DATABASE onlyoffice;" && \ sudo -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" && \ sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" && \