From 570283b0d94528a020fefa69afee6859d7e3383d Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 25 Jan 2017 16:30:19 +0100 Subject: [PATCH] Add mailcatcher --- lamp-trusty64-fpm/bootstrap.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lamp-trusty64-fpm/bootstrap.sh b/lamp-trusty64-fpm/bootstrap.sh index d966d1a..f5929c7 100644 --- a/lamp-trusty64-fpm/bootstrap.sh +++ b/lamp-trusty64-fpm/bootstrap.sh @@ -110,6 +110,17 @@ if [ ! -f /usr/bin/php5 ]; then sudo service php5-fpm restart fi +# --- Installation mailcatcher +if [ ! -f /usr/local/bin/mailcatcher ]; then + sudo apt-get install -y build-essential software-properties-common + sudo apt-get install -y libsqlite3-dev ruby1.9.1-dev + sudo gem install mime-types --version "< 3" + sudo gem install --conservative mailcatcher + echo "@reboot root $(which mailcatcher) --http-ip=0.0.0.0" >> /etc/crontab + sudo sed -i -e 's/;sendmail_path =/sendmail_path = \/usr\/bin\/env catchmail -f local@sd.dev/g' /etc/php5/cli/php.ini + sudo sed -i -e 's/;sendmail_path =/sendmail_path = \/usr\/bin\/env catchmail -f local@sd.dev/g' /etc/php5/fpm/php.ini +fi + # --- Composer if [ ! -f /usr/local/bin/composer ]; then curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer