split initial setup into modules
This commit is contained in:
parent
5f3bc5e0e4
commit
50d83f31ef
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
sudo apt upgrade
|
sudo apt upgrade
|
||||||
sudo apt install -y tmux ufw certbot
|
sudo apt install -y tmux ufw
|
||||||
|
|
||||||
sudo ufw allow ssh
|
sudo ufw allow ssh
|
||||||
sudo ufw allow http
|
sudo ufw allow http
|
||||||
|
@ -15,12 +15,4 @@ ln -s /usr/local/lsws/wordpress
|
||||||
sudo rm -Rf /usr/local/lsws/wordpress/*
|
sudo rm -Rf /usr/local/lsws/wordpress/*
|
||||||
mkdir site-archive
|
mkdir site-archive
|
||||||
|
|
||||||
sudo certbot certonly --webroot --webroot-path /usr/local/lsws/wordpress
|
|
||||||
|
|
||||||
sudo /usr/local/lsws/admin/misc/admpass.sh
|
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"
|
|
|
@ -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"
|
Loading…
Reference in New Issue