From 46400ff39f007a6627611d4c0d497c33e0c01238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wypch=C5=82o?= Date: Tue, 24 Mar 2020 15:42:03 +0100 Subject: [PATCH] Setup scripts improvements (#123) * fix /Users/karol issue with go path * do not emit error if /etc/nginx/sites-enabled/default is not found --- setup-scripts/setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup-scripts/setup.sh b/setup-scripts/setup.sh index 9dde8df8..d12988d4 100755 --- a/setup-scripts/setup.sh +++ b/setup-scripts/setup.sh @@ -33,7 +33,7 @@ rm alacritty.info sudo cp ./skynet-nginx.conf /etc/nginx/sites-available/skynet sudo nginx -t 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 # Setup firewall @@ -46,7 +46,7 @@ sudo ufw allow 'Nginx HTTP' # Install Go 1.13.7. 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 -export PATH=$PATH:$HOME/go/bin +export PATH=$PATH:/usr/local/go/bin rm go1.13.7.linux-amd64.tar.gz # Sanity check that will pass if go was installed correctly.