diff --git a/src/freedombone-freedns b/src/freedombone-freedns index 81519f6b7ba07534584c1e6505130bab42a57ea6..0666f0fee1bed488941f395042a646f01fbcd60f 100755 --- a/src/freedombone-freedns +++ b/src/freedombone-freedns @@ -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