Whiptail alignment
This commit is contained in:
@@ -230,10 +230,10 @@ if (whiptail --title "Set sitename?" --yesno "Set sitename to ${domain//./_} ?"
|
||||
sitename=${domain//./_}
|
||||
else
|
||||
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" ]
|
||||
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
|
||||
break
|
||||
fi
|
||||
@@ -243,7 +243,7 @@ while true; do
|
||||
HostnameQuest
|
||||
if [[ "$hostname" == "$domain" ]] || [ -z "$hostname" ]
|
||||
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
|
||||
break
|
||||
|
||||
|
||||
Reference in New Issue
Block a user