Add mailcatcher

This commit is contained in:
Michael RICOIS 2017-01-25 16:30:19 +01:00
parent 0a6d7deedb
commit 570283b0d9

View File

@ -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