Move lets-encrypt commands to separate script

This commit is contained in:
Marcin Jachymiak 2020-01-30 11:21:47 -05:00
parent 9b4858974a
commit 608b7d949e
2 changed files with 6 additions and 4 deletions

5
letsencrypt-setup.sh Executable file
View File

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

View File

@ -29,6 +29,7 @@ rm alacritty.info
# 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
source ~/.bashrc
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.
@ -48,10 +49,6 @@ sudo ufw enable
sudo ufw allow 'Nginx Full' sudo ufw allow 'Nginx Full'
sudo ufw delete allow 'Nginx HTTP' 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. # Setup skynet frontend.
cd ~/ cd ~/
git clone https://gitlab.com/NebulousLabs/siawebviewer && cd siawebviewer git clone https://gitlab.com/NebulousLabs/siawebviewer && cd siawebviewer