Setup scripts improvements (#123)

* fix /Users/karol issue with go path
* do not emit error if /etc/nginx/sites-enabled/default is not found
This commit is contained in:
Karol Wypchło 2020-03-24 15:42:03 +01:00 committed by GitHub
parent 553cedf54c
commit 46400ff39f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ rm alacritty.info
sudo cp ./skynet-nginx.conf /etc/nginx/sites-available/skynet sudo cp ./skynet-nginx.conf /etc/nginx/sites-available/skynet
sudo nginx -t sudo nginx -t
sudo ln -sf /etc/nginx/sites-available/skynet /etc/nginx/sites-enabled/skynet sudo ln -sf /etc/nginx/sites-available/skynet /etc/nginx/sites-enabled/skynet
sudo rm /etc/nginx/sites-enabled/default sudo rm /etc/nginx/sites-enabled/default --force
sudo systemctl reload nginx sudo systemctl reload nginx
# Setup firewall # Setup firewall
@ -46,7 +46,7 @@ sudo ufw allow 'Nginx HTTP'
# Install Go 1.13.7. # Install Go 1.13.7.
wget -c https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz wget -c https://dl.google.com/go/go1.13.7.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.13.7.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.13.7.linux-amd64.tar.gz
export PATH=$PATH:$HOME/go/bin export PATH=$PATH:/usr/local/go/bin
rm go1.13.7.linux-amd64.tar.gz rm go1.13.7.linux-amd64.tar.gz
# Sanity check that will pass if go was installed correctly. # Sanity check that will pass if go was installed correctly.