Skip to content

Instantly share code, notes, and snippets.

@msadouni
Last active August 29, 2015 14:17
Show Gist options
  • Save msadouni/4082c33a5323b22ee58e to your computer and use it in GitHub Desktop.
Save msadouni/4082c33a5323b22ee58e to your computer and use it in GitHub Desktop.
Reset script for the golden-master demo https://github.com/mhcommunication/golden-master
#!/bin/bash
sudo echo "LoadModule php5_module /usr/lib/apache2/modules/libphp5.so" > /tmp/php5.load
sudo ln -nfs /vagrant/templates/default /etc/apache2/sites-available/default
sudo ln -nfs /tmp/php5.load /etc/apache2/mods-enabled/php5.load
sudo service apache2 restart
find /vagrant -type f -name "*.default" | while read file
do
cp $file ${file%.*}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment