Skip to content

Instantly share code, notes, and snippets.

@zgulde
Last active April 18, 2017 19:06
Show Gist options
  • Select an option

  • Save zgulde/2ba2d5ed67fcb58dca35305bc8be8b76 to your computer and use it in GitHub Desktop.

Select an option

Save zgulde/2ba2d5ed67fcb58dca35305bc8be8b76 to your computer and use it in GitHub Desktop.
#!/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