Compare commits
No commits in common. "a5257e6734a961898baee63aa61758d6cf9a253c" and "6b92aeb1c70a17842ac467ac3e5b3099af6da200" have entirely different histories.
a5257e6734
...
6b92aeb1c7
@ -468,14 +468,6 @@ advanced_settings() {
|
|||||||
else
|
else
|
||||||
HN=$(echo "${CT_NAME,,}" | tr -d ' ')
|
HN=$(echo "${CT_NAME,,}" | tr -d ' ')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Hostname validate (RFC 1123)
|
|
||||||
if ! [[ "$HN" =~ ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ ]]; then
|
|
||||||
whiptail --backtitle "[dev] Proxmox VE Helper Scripts" \
|
|
||||||
--msgbox "❌ Invalid hostname: '$HN'\n\nOnly lowercase letters, digits and hyphens (-) are allowed.\nUnderscores (_) or other characters are not permitted!" 10 70
|
|
||||||
advanced_settings
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo -e "${HOSTNAME}${BOLD}${DGN}Hostname: ${BGN}$HN${CL}"
|
echo -e "${HOSTNAME}${BOLD}${DGN}Hostname: ${BGN}$HN${CL}"
|
||||||
else
|
else
|
||||||
exit_script
|
exit_script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user