Vagrant: Fix Nginx configuration script

pull/9/head
Franz Liedke 2015-06-20 19:38:46 +02:00
parent 796bd1a858
commit 56dd92c61a
1 changed files with 2 additions and 3 deletions

View File

@ -1,5 +1,4 @@
#! /bin/bash
su - vagrant
block="
server {
@ -53,8 +52,8 @@ block="
}
"
echo "$block" > "/etc/nginx/sites-available/vagrant"
service nginx restart
echo "$block" | sudo tee /etc/nginx/sites-available/vagrant
sudo service nginx restart
### Setup NPM globals and create necessary directories ###
sudo apt-get install -y phantomjs zsh exuberant-ctags