Index of the code

This commit is contained in:
Bob Mottram 2016-12-04 13:41:37 +00:00
parent bbb32e867b
commit 493eb2e6ed
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ function install_interactive_postactiv {
dialog --title $"Domain name validation" --msgbox "$TEST_DOMAIN_NAME" 15 50
else
if [[ $DDNS_PROVIDER == "default@freedns.afraid.org" ]]; then
POSTACTIV_CODE=$(cat $data | sed -n 4p)
POSTACTIV_CODE=$(cat $data | sed -n 2p)
validate_freedns_code "$POSTACTIV_CODE"
if [ ! $VALID_CODE ]; then
POSTACTIV_DOMAIN_NAME=

View File

@ -758,7 +758,7 @@ function validate_freedns_code {
dialog --title $"Invalid FreeDNS Code" --msgbox "$FREEDNS_MESSAGE" 10 70
VALID_CODE=
fi
if [ ${#freedns_code} -lt 25 ]; then
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
VALID_CODE=
fi

View File

@ -53,7 +53,7 @@ function validate_freedns_code {
dialog --title $"Invalid FreeDNS Code" --msgbox "$FREEDNS_MESSAGE" 10 70
VALID_CODE=
fi
if [ ${#freedns_code} -lt 25 ]; then
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
VALID_CODE=
fi