Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
25 lines (19 sloc)
690 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |