Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (16 sloc) 572 Bytes
#!/bin/bash
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd | sed -e 's/\/bin$//' )"
$DIR/bin/cpanm -l $DIR/local Carton
export PATH=$DIR/local/bin:$PATH
export PERL5LIB=$DIR/local/lib/perl5
carton install --deployment
perl -MImage::Magick -e 'exit()' >/dev/null 2>&1
HAVE_IM=$?
if [ $HAVE_IM -ne 0 ]
then
read -p "Image::Magick is not installed. Do you want to attempt to install it?" yn
case $yn in
[Yy]* ) $DIR/local/bin/carton install Image::Magick;;
* ) echo 'You will need to install it for FixMyStreet to work';;
esac
fi