Fix scripts

This commit is contained in:
Ernesto Serrano 2018-03-26 09:47:40 +02:00
parent e2c2df3f4d
commit 56196d65f0

20
algo
View file

@ -519,10 +519,6 @@ if [ "x${IP_subject}" = "x" ]; then
exit 1
fi
ROLES="local vpn"
EXTRA_VARS="server_ip=$server_ip server_user=$server_user IP_subject_alt_name=$IP_subject"
SKIP_TAGS+=" cloud update-alternatives"
read -p "
Enter the public DNS name of your server: (IMPORTANT! This name is used to verify the certificate)
@ -534,8 +530,13 @@ if [ "x${DNS_subject}" = "x" ]; then
exit 1
fi
ROLES="local vpn"
EXTRA_VARS="server_ip=$server_ip server_user=$server_user DNS_subject_alt_name=$DNS_subject IP_subject_alt_name=$IP_subject"
SKIP_TAGS+=" cloud update-alternatives"
read -p "
Was this server deployed by Algo previously?
[y/N]: " -r Deployed_By_Algo
Deployed_By_Algo=${Deployed_By_Algo:-n}
@ -610,6 +611,17 @@ exit 1
fi
read -p "
Enter the public DNS name of your server: (IMPORTANT! This name is used to verify the certificate)
[$mydns]: " -r DNS_subject
DNS_subject=${DNS_subject:-$mydns}
if [ "x${DNS_subject}" = "x" ]; then
echo "no public DNS name given. exiting."
exit 1
fi
read -p "
Enter the password for the private CA key:
$ADDITIONAL_PROMPT
: " -rs easyrsa_CA_password