diff --git a/initial-setup.sh b/install-server-base.sh similarity index 51% rename from initial-setup.sh rename to install-server-base.sh index e392a17..8191dfa 100644 --- a/initial-setup.sh +++ b/install-server-base.sh @@ -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 :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" \ No newline at end of file diff --git a/install-ssl.sh b/install-ssl.sh new file mode 100644 index 0000000..1b259e4 --- /dev/null +++ b/install-ssl.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +sudo apt install -y certbot +sudo certbot certonly --webroot --webroot-path /usr/local/lsws/wordpress + +echo "NOW VISIT :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"