From 328ee1b1912242e24ba88ee5b310c212c76690d3 Mon Sep 17 00:00:00 2001 From: "Thad(deus) Bogner" <2187021+twinvega@users.noreply.github.com> Date: Mon, 11 Jun 2018 13:13:38 -0400 Subject: [PATCH 1/3] Update ServerSetup.sh Change domain to lowercase so that it's consistent throughout. Some directories were lowercase and others configurations weren't and it wasn't able to match correctly. --- ServerSetup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ServerSetup.sh b/ServerSetup.sh index 73bd171..4c5a9ca 100644 --- a/ServerSetup.sh +++ b/ServerSetup.sh @@ -36,6 +36,8 @@ debian_initialize() { echo "Changing Hostname" read -p "Enter your hostname: " -r primary_domain + + primary_domain="${primary_domain,,}" cat <<-EOF > /etc/hosts 127.0.1.1 $primary_domain $primary_domain From fb7ebc630a9d104ca35f040534cca09fa2ece1c2 Mon Sep 17 00:00:00 2001 From: "Thad(deus) Bogner" <2187021+twinvega@users.noreply.github.com> Date: Mon, 11 Jun 2018 13:21:47 -0400 Subject: [PATCH 2/3] Update ServerSetup.sh Additional lowercase conversions for hostname --- ServerSetup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ServerSetup.sh b/ServerSetup.sh index 4c5a9ca..6477e48 100644 --- a/ServerSetup.sh +++ b/ServerSetup.sh @@ -179,6 +179,7 @@ install_ssl_Cert() { while [ "$end" != "true" ] do read -p "Enter your server's domain or done to exit: " -r domain + domain="${domain,,}" if [ "$domain" != "done" ] then letsencryptdomains[$i]=$domain @@ -207,6 +208,7 @@ install_postfix_dovecot() { apt-get install -qq -y mailutils read -p "Enter your mail server's domain: " -r primary_domain + primary_domain="${primary_domain,,}" read -p "Enter IP's to allow Relay (if none just hit enter): " -r relay_ip echo "Configuring Postfix" @@ -535,6 +537,7 @@ function Install_GoPhish { case "$response" in [yY][eE][sS]|[yY]) read -p "Enter your web server's domain: " -r primary_domain + primary_domain="${primary_domain,,}" if [ -f "/etc/letsencrypt/live/${primary_domain}/fullchain.pem" ];then ssl_cert="/etc/letsencrypt/live/${primary_domain}/fullchain.pem" ssl_key="/etc/letsencrypt/live/${primary_domain}/privkey.pem" From 66308b4f59dd24605f007bf5053ec065f08a1de6 Mon Sep 17 00:00:00 2001 From: "Thad(deus) Bogner" <2187021+twinvega@users.noreply.github.com> Date: Mon, 11 Jun 2018 13:22:12 -0400 Subject: [PATCH 3/3] Update ServerSetup.sh --- ServerSetup.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ServerSetup.sh b/ServerSetup.sh index 6477e48..0ac7035 100644 --- a/ServerSetup.sh +++ b/ServerSetup.sh @@ -36,7 +36,6 @@ debian_initialize() { echo "Changing Hostname" read -p "Enter your hostname: " -r primary_domain - primary_domain="${primary_domain,,}" cat <<-EOF > /etc/hosts