Skip to content

Instantly share code, notes, and snippets.

@ezynda3
Last active August 29, 2015 14:08
Show Gist options
  • Save ezynda3/b187d9599b0a4c8ad5ee to your computer and use it in GitHub Desktop.
Save ezynda3/b187d9599b0a4c8ad5ee to your computer and use it in GitHub Desktop.
Quick script to install zsh and bash on CentOS
#!/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