From 50d83f31ef86aab1bbff08ff08d8aba67110c599 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 8 Jun 2020 11:43:48 +0100 Subject: [PATCH] split initial setup into modules --- initial-setup.sh => install-server-base.sh | 10 +--------- install-ssl.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) rename initial-setup.sh => install-server-base.sh (51%) create mode 100644 install-ssl.sh 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"