diff --git a/letsencrypt-setup.sh b/letsencrypt-setup.sh new file mode 100755 index 00000000..49487ae8 --- /dev/null +++ b/letsencrypt-setup.sh @@ -0,0 +1,5 @@ +#! /usr/bin/env bash +set -e + +sudo certbot --nginx -d siasky.net -d www.siasky.net +sudo certbot renew --dry-run diff --git a/setup.sh b/setup.sh index d6292bef..d0c67e06 100755 --- a/setup.sh +++ b/setup.sh @@ -29,6 +29,7 @@ rm alacritty.info # 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 +source ~/.bashrc rm go1.13.7.linux-amd64.tar.gz # Sanity check that will pass if go was installed correctly. @@ -48,10 +49,6 @@ sudo ufw enable sudo ufw allow 'Nginx Full' sudo ufw delete allow 'Nginx HTTP' -sudo certbot --nginx -d siasky.net -d www.siasky.net -sudo certbot renew --dry-run -sudo ln -s /etc/nginx/sites-available/skynet /etc/nginx/sites-enabled/skynet - # Setup skynet frontend. cd ~/ git clone https://gitlab.com/NebulousLabs/siawebviewer && cd siawebviewer