Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
executable file 25 lines (19 sloc) 690 Bytes
#!/bin/bash
set -x
set -e
OS_CODENAME=$(lsb_release -cs)
apt-get update -qq
apt-get install -y software-properties-common
# these sysdeps are available by default in bionic
if [ ${OS_CODENAME} == "xenial" ]; then
apt-get install -y python-software-properties
# PPA has recent ImageMagick versions for for Ubuntu Trusty/Xenial
add-apt-repository -y ppa:cran/imagemagick
apt-get update -qq
fi
apt-get install -y libmagick++-dev
if [ ${OS_CODENAME} == "focal" ]; then
# the default policy file for debian based imagemagick is overly strict for an environment such as shinapps.io
# remove this file to use the default imagemagick policy.
rm /etc/ImageMagick-6/policy.xml
fi