mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-04 11:03:12 +02:00
Fix scripts
This commit is contained in:
parent
e2c2df3f4d
commit
56196d65f0
1 changed files with 16 additions and 4 deletions
20
algo
20
algo
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue