Last active
April 18, 2017 19:06
-
-
Save zgulde/2ba2d5ed67fcb58dca35305bc8be8b76 to your computer and use it in GitHub Desktop.
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/bash | |
| # This script will replace the ansible parts of the codeup vagrant setup | |
| # | |
| # bash -c "$(curl https://gist.githubusercontent.com/zgulde/2ba2d5ed67fcb58dca35305bc8be8b76/raw/2f451faba1913535c724b586598fafd62254e2cc/php-update.sh)" | |
| set -e | |
| if [[ ! -d ~/vagrant-lamp ]]; then | |
| echo "~/vagrant-lamp directory not found!" | |
| exit 1 | |
| fi | |
| git clone https://github.com/gocodeup/Codeup-Vagrant-Setup.git /tmp/codeup-vagrant-setup | |
| rm -rf ~/vagrant-lamp/ansible | |
| rm ~/vagrant-lamp/ansible.cfg | |
| mv /tmp/codeup-vagrant-setup/ansible.cfg ~/vagrant-lamp | |
| mv /tmp/codeup-vagrant-setup/ansible ~/vagrant-lamp | |
| rm -rf /tmp/codeup-vagrant-setup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment