Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ServerSetup.sh #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ServerSetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ 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
Expand Down Expand Up @@ -177,6 +178,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
Expand Down Expand Up @@ -205,6 +207,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"

Expand Down Expand Up @@ -533,6 +536,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"
Expand Down