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

Exactly follow the recommended wget

parent 3adcef3f
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,9 @@ export TEXTDOMAINDIR="/usr/share/locale"
VERBOSE=
CONFIGURATION_FILE=/root/${PROJECT_NAME}.cfg
FREEDNS_WGET='wget --read-timeout=0.0 --waitretry=5 --tries=4 https://freedns.afraid.org/dynamic/update.php?'
#FREEDNS_WGET='wget --read-timeout=0.0 --waitretry=5 --tries=4 https://freedns.afraid.org/dynamic/update.php?'
FREEDNS_WGET='wget --no-check-certificate -O - https://freedns.afraid.org/dynamic/update.php?'
if [[ "$1" == "--verbose" || "$1" == "-v" ]]; then
VERBOSE=1
......@@ -75,15 +77,20 @@ cd "$HOME/.freedns-update" || exit 2467824684
for code in ${detected_codes[@]}
do
if [ $VERBOSE ]; then
echo $"command: $FREEDNS_WGET${code}="
# shellcheck disable=SC1066,SC1067
$FREEDNS_WGET${code}=
else
echo $"command: $FREEDNS_WGET${code}= /tmp/freedns 2>&1 &"
fi
if [ -f /tmp/freedns ]; then
rm /tmp/freedns
fi
# shellcheck disable=SC1066,SC1067,SC1007
$FREEDNS_WGET${code}= >> /tmp/freedns 2>&1 &
if [ $VERBOSE ]; then
if [ -f /tmp/freedns ]; then
rm /tmp/freedns
cat /tmp/freedns
fi
# shellcheck disable=SC1066,SC1067,SC1007
$FREEDNS_WGET${code}= >> /tmp/freedns 2>&1
fi
# if your subdomains are linked on the freedns site
......
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