Fix FQDN input prompt in step-ca-install.sh

This commit is contained in:
Joerg Heinemann 2026-02-08 10:32:42 +01:00 committed by GitHub
parent b68eb1ef5e
commit 81af9f5c13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"