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

Extra checks

parent 4ca64952
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,15 @@ if [ ! -f "$CONFIGURATION_FILE" ]; then
exit 0
fi
code=$(grep 'DEFAULT_DOMAIN_CODE' "$CONFIGURATION_FILE" | awk -F '=' '{print $2}')
if ! grep -q 'DEFAULT_DOMAIN_CODE=' "$CONFIGURATION_FILE"; then
exit 0
fi
code=$(grep 'DEFAULT_DOMAIN_CODE=' "$CONFIGURATION_FILE" | awk -F '=' '{print $2}')
if [ ${#code} -lt 30 ]; then
exit 0
fi
if [ $VERBOSE ]; then
echo $"wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?${code}= >> /tmp/freedns 2>&1 &"
......
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