update scripts to support Sia v1.4.4 (#98)

* update scripts to support Sia v1.4.4
* force overwrite symlink
This commit is contained in:
Karol Wypchło 2020-03-20 22:11:20 +01:00 committed by GitHub
parent 737a51b206
commit fa052550cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 14 deletions

View File

@ -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.

View File

@ -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