split initial setup into modules

This commit is contained in:
Ray Elliott 2020-06-08 11:43:48 +01:00
parent 5f3bc5e0e4
commit 50d83f31ef
2 changed files with 11 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
sudo apt upgrade
sudo apt install -y tmux ufw certbot
sudo apt install -y tmux ufw
sudo ufw allow ssh
sudo ufw allow http
@ -15,12 +15,4 @@ ln -s /usr/local/lsws/wordpress
sudo rm -Rf /usr/local/lsws/wordpress/*
mkdir site-archive
sudo certbot certonly --webroot --webroot-path /usr/local/lsws/wordpress
sudo /usr/local/lsws/admin/misc/admpass.sh
echo "NOW VISIT <IP>:7080"
echo " login and set SSL"
echo " Listeners > SSL > SSL Private Key & Certificate"
echo " Private Key File: /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem"
echo " Private Key File: /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem"

10
install-ssl.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
sudo apt install -y certbot
sudo certbot certonly --webroot --webroot-path /usr/local/lsws/wordpress
echo "NOW VISIT <IP>:7080"
echo " login and set SSL"
echo " Listeners > SSL > SSL Private Key & Certificate"
echo " Private Key File: /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem"
echo " Private Key File: /etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem"