From c1d81dc1ea5c58424d184321d9c8b341e5caf372 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Fri, 31 Jan 2020 15:45:26 +0100 Subject: [PATCH] [misc] install a maintained ghostscript version and delete package lists also do not install vim and bail out in case any command exited with a non zero exit code. --- services/filestore/install_deps.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/services/filestore/install_deps.sh b/services/filestore/install_deps.sh index 2bf275b1cb..75f6ff4f86 100755 --- a/services/filestore/install_deps.sh +++ b/services/filestore/install_deps.sh @@ -1,15 +1,14 @@ #!/bin/sh + +set -ex + apt-get update -apt-get install vim imagemagick optipng --yes +apt-get install ghostscript imagemagick optipng --yes + +rm -rf /var/lib/apt/lists/* -wget -q https://s3.amazonaws.com/sl-public-dev-assets/ghostscript-9.15.tar.gz -O /tmp/ghostscript-9.15.tar.gz -cd /tmp -tar -xvf /tmp/ghostscript-9.15.tar.gz -cd /tmp/ghostscript-9.15 && ./configure && make && make install -npm rebuild mkdir /app/user_files/ /app/uploads/ /app/template_files/ chown -R node:node /app/user_files chown -R node:node /app/uploads chown -R node:node /app/template_files -ls -al /app \ No newline at end of file