Add mailcatcher
This commit is contained in:
parent
0a6d7deedb
commit
570283b0d9
@ -110,6 +110,17 @@ if [ ! -f /usr/bin/php5 ]; then
|
|||||||
sudo service php5-fpm restart
|
sudo service php5-fpm restart
|
||||||
fi
|
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
|
# --- Composer
|
||||||
if [ ! -f /usr/local/bin/composer ]; then
|
if [ ! -f /usr/local/bin/composer ]; then
|
||||||
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
|
curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
|
Loading…
Reference in New Issue
Block a user