Last active
August 29, 2015 14:08
-
-
Save ezynda3/b187d9599b0a4c8ad5ee to your computer and use it in GitHub Desktop.
Quick script to install zsh and bash on CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Mailcatcher & zsh | |
yum -y install zsh | |
yum -y install centos-release-SCL | |
yum -y install ruby193 | |
yum -y install ruby193-ruby-devel | |
scl enable ruby193 "gem install mailcatcher" | |
sed -i 's/sendmail_path = \/usr\/sbin\/sendmail -t -i/sendmail_path = "scl enable ruby193 \/opt\/rh\/ruby193\/root\/usr\/local\/bin\/catchmail"/g' /etc/php.ini | |
echo "scl enable ruby193 \"/opt/rh/ruby193/root/usr/local/bin/mailcatcher --ip=0.0.0.0\"" >> /etc/rc.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment