#!/bin/sh set -ex apt-get update apt-get install ghostscript imagemagick optipng iproute2 --yes rm -rf /var/lib/apt/lists/* # Allow ImageMagick to process PDF files. Filestore does pdf to image # conversion for the templates service. patch /etc/ImageMagick-6/policy.xml < - EOF