sh Ubuntu 16.04的Mailcatcher安装脚本(14.04命令已注释掉)
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Ubuntu 16.04的Mailcatcher安装脚本(14.04命令已注释掉)相关的知识,希望对你有一定的参考价值。
#!/bin/bash
# Install dependencies
# older ubuntus
#apt-get install build-essential libsqlite3-dev ruby1.9.1-dev
# xenial
apt install build-essential libsqlite3-dev ruby-dev
# Install the gem
gem install mailcatcher
# Make it start on boot
echo "@reboot root $(which mailcatcher) --ip=0.0.0.0" >> /etc/crontab
update-rc.d cron defaults
# Make php use it to send mail
# older ubuntus
#echo "sendmail_path = /usr/bin/env $(which catchmail) -f 'www-data@localhost'" >> /etc/php5/mods-available/mailcatcher.ini
# xenial
echo "sendmail_path = /usr/bin/env $(which catchmail) -f 'www-data@localhost'" >> /etc/php/7.0/mods-available/mailcatcher.ini
# Notify php mod manager (5.5+)
# older ubuntus
#php5enmod mailcatcher
# xenial
phpenmod mailcatcher
# Start it now
/usr/bin/env $(which mailcatcher) --ip=0.0.0.0
以上是关于sh Ubuntu 16.04的Mailcatcher安装脚本(14.04命令已注释掉)的主要内容,如果未能解决你的问题,请参考以下文章
sh 安装Ubuntu 16.04 LAMP
sh [Ubuntu 16.04]设备信息
sh Opencv 3.3 Ubuntu 16.04
sh 重新启动网络Ubuntu 16.04 CLI
sh Ubuntu Server 16.04 - 部署Nextcloud
sh 在ubuntu 16.04上安装saltstack