Created
October 6, 2014 13:13
-
-
Save portabilisgist/49c0c1530bdb1e273333 to your computer and use it in GitHub Desktop.
Configuração do apache
This file contains 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
# @autor: Lucas D'Ávila (Portabilis) | |
echo -e "\n\n** Configurando virtual host" | |
sudo apt-get install -y rpl | |
sudo rm -f /etc/apache2/sites-enabled/ieducar | |
sudo rm -f /etc/apache2/sites-available/ieducar | |
sudo wget https://s3-us-west-2.amazonaws.com/portabilis2/public/ieducar/apache/sites-available/ieducar -P /etc/apache2/sites-available/ | |
sudo rpl "/home/portabilis" "/home/$USER" /etc/apache2/sites-available/ieducar | |
sudo a2dissite 000-default | |
sudo a2ensite ieducar | |
sudo service apache2 restart | |
if ! grep -q ieducar.local /etc/hosts; then | |
echo -e "\n\n** Adicionando host para ieducar.local" | |
echo "127.0.0.1 ieducar.local" | sudo tee -a /etc/hosts | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment