Whiptail alignment

This commit is contained in:
b.waal
2020-10-02 11:12:27 +02:00
parent 6fd151096a
commit 29e78ceacb

View File

@@ -230,10 +230,10 @@ if (whiptail --title "Set sitename?" --yesno "Set sitename to ${domain//./_} ?"
sitename=${domain//./_} sitename=${domain//./_}
else else
while true; do while true; do
sitename=$(whiptail --nocancel --inputbox "Enter sitename, Must NOT contain special characters, except: _" 8 78 --title "Sitename" 3>&1 1>&2 2>&3) sitename=$(whiptail --nocancel --inputbox "Enter sitename, Must NOT contain special characters, except: _" 8 66 --title "Sitename" 3>&1 1>&2 2>&3)
if [[ $sitename == *['!'@#\$%^\&*()+,.]* ]] || [ -z "$sitename" ] if [[ $sitename == *['!'@#\$%^\&*()+,.]* ]] || [ -z "$sitename" ]
then then
whiptail --msgbox " Site can't be empty, or contain a special character except for: _" 11 78 whiptail --msgbox " Site can't be empty, or contain a special character except for: _" 11 76
else else
break break
fi fi
@@ -243,7 +243,7 @@ while true; do
HostnameQuest HostnameQuest
if [[ "$hostname" == "$domain" ]] || [ -z "$hostname" ] if [[ "$hostname" == "$domain" ]] || [ -z "$hostname" ]
then then
whiptail --msgbox " Hostname can't be empty, or be the same as the domain" 11 78 whiptail --msgbox " Hostname can't be empty, or be the same as the domain" 11 63
else else
break break