Compare commits

..

No commits in common. "c073351b4c9bd91c1fbb7f7172c3b9a79d47de61" and "c042b7c5278f503712c628622d6da2d9c5b0301a" have entirely different histories.

1 changed files with 9 additions and 21 deletions

View File

@ -230,29 +230,17 @@ advanced_settings() {
fi
done
while true; do
if PW1=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "\nSet Root Password (needed for root ssh access)" 9 58 --title "PASSWORD(leave blank for automatic login)" 3>&1 1>&2 2>&3); then
if [[ ! -z "$PW1" ]]; then
if [[ "$PW1" == *" "* ]]; then
whiptail --msgbox "Password cannot contain spaces. Please try again." 8 58
elif [ ${#PW1} -lt 5 ]; then
whiptail --msgbox "Password must be at least 5 characters long. Please try again." 8 58
else
PW="-password $PW1"
echo -e "${DGN}Using Root Password: ${BGN}$PW1${CL}"
break
fi
else
if [ -z $PW1 ]; then
PW1="Automatic Login"
PW=""
echo -e "${DGN}Using Root Password: ${BGN}$PW1${CL}"
break
else
PW="-password $PW1"
fi
echo -e "${DGN}Using Root Password: ${BGN}$PW1${CL}"
else
exit-script
fi
done
if CT_ID=$(whiptail --backtitle "Proxmox VE Helper Scripts" --inputbox "Set Container ID" 8 58 $NEXTID --title "CONTAINER ID" 3>&1 1>&2 2>&3); then
if [ -z "$CT_ID" ]; then