Skip to content
Snippets Groups Projects
Commit 820fa6a4 authored by Bob Mottram's avatar Bob Mottram
Browse files

dns

parent a13bb61d
No related branches found
No related tags found
No related merge requests found
......@@ -146,11 +146,11 @@ function validate_freedns_code {
FREEDNS_MESSAGE=$"Please enter the FreeDNS code for this domain.\n\nThe code can be found by going to https://freedns.afraid.org, selecting 'Dynamic DNS' and then opening 'Wget example'. The code will consist of letters and numbers and be between the ? and = characters."
if [[ "$freedns_code" == *"."* || "$freedns_code" == "http"* || "$freedns_code" == *"wget "* || "$freedns_code" == *" "* ]]; then
dialog --title $"Invalid Freedns Code" --msgbox $'$FREEDNS_MESSAGE' 10 70
dialog --title $"Invalid FreeDNS Code" --msgbox $'$FREEDNS_MESSAGE' 10 70
VALID_CODE=
fi
if [ ${#freedns_code} -lt 30 ]; then
dialog --title $"Invalid Freedns Code" --msgbox $'Freedns code is too short. Did you enter the entire code?' 6 70
dialog --title $"Invalid FreeDNS Code" --msgbox $'FreeDNS code is too short. Did you enter the entire code?' 6 70
VALID_CODE=
fi
VALID_CODE='yes'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment