Fix FQDN input prompt in step-ca-install.sh
This commit is contained in:
parent
b68eb1ef5e
commit
81af9f5c13
@ -43,7 +43,6 @@ msg_info "Add a smallstep CA service user - Will only be used by systemd to mana
|
|||||||
$STD useradd --user-group --system --home $(step path) --shell /bin/false step
|
$STD useradd --user-group --system --home $(step path) --shell /bin/false step
|
||||||
msg_ok "Created smallstep CA service user"
|
msg_ok "Created smallstep CA service user"
|
||||||
|
|
||||||
DeploymentType="standalone"
|
|
||||||
DeploymentType="standalone"
|
DeploymentType="standalone"
|
||||||
FQDN=$(hostname -f)
|
FQDN=$(hostname -f)
|
||||||
DomainName=$(hostname -d)
|
DomainName=$(hostname -d)
|
||||||
@ -242,7 +241,7 @@ PROVISIONER_PASSWORD=$(step path)/encryption//provisioner.pwd
|
|||||||
while true;
|
while true;
|
||||||
do
|
do
|
||||||
|
|
||||||
FQDN=$(whiptail --title "step ca certificate options" --inputbox 'FQDN (e.g. MyLXC.example.com)' 10 50 "$FQDN" 3>&1 1>&2 2>&3)
|
FQDN=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "step ca certificate options" --inputbox 'FQDN (e.g. MyLXC.example.com)' 10 50 "$FQDN" 3>&1 1>&2 2>&3)
|
||||||
IP=$(dig +short $FQDN)
|
IP=$(dig +short $FQDN)
|
||||||
if [[ -z "$IP" ]]; then
|
if [[ -z "$IP" ]]; then
|
||||||
echo "Resolution failed for $FQDN"
|
echo "Resolution failed for $FQDN"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user