diff --git a/setup-scripts/README.md b/setup-scripts/README.md index ff207fba..39e1ad88 100644 --- a/setup-scripts/README.md +++ b/setup-scripts/README.md @@ -41,7 +41,7 @@ You a can now ssh into your machine as the user `user`. ## Running siad NOTE: You must be running `siad` and `siac` by building from a version at least -as recent as `v1.4.3`. +as recent as `v1.4.4`. You still need to setup `siad` for the backend to be complete. diff --git a/setup-scripts/setup.sh b/setup-scripts/setup.sh index 6cfc6740..9dde8df8 100755 --- a/setup-scripts/setup.sh +++ b/setup-scripts/setup.sh @@ -32,7 +32,7 @@ rm alacritty.info # Setup nginx config sudo cp ./skynet-nginx.conf /etc/nginx/sites-available/skynet sudo nginx -t -sudo ln -s /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 systemctl reload nginx @@ -52,21 +52,11 @@ rm go1.13.7.linux-amd64.tar.gz # Sanity check that will pass if go was installed correctly. go version -cwd=$(pwd) - # Install Sia -cd ~/ -git clone https://gitlab.com/NebulousLabs/Sia -cd Sia && git checkout v1.4.3 && make - -# Setup skynet frontend. -cd $cwd -cd ../ -yarn -yarn build +git clone -b v1.4.4 https://gitlab.com/NebulousLabs/Sia ~/Sia +make --directory ~/Sia # Setup systemd files -cd $cwd mkdir -p ~/.config/systemd/user cp siad.service ~/.config/systemd/user/siad.service cp siad-upload.service ~/.config/systemd/user/siad-upload.service @@ -80,3 +70,8 @@ cp sia.env ~/.sia/sia-upload.env sudo mkdir -p /var/log/journal sudo cp journald.conf /etc/systemd/journald.conf sudo systemctl restart systemd-journald + +# Setup skynet frontend. +cd .. +yarn +yarn build