Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-14 15:49:01 -06:00
parent f04e164ad9
commit 942d702992

View File

@@ -542,7 +542,7 @@ UPDATE_DYNDNS(){
echo -e "${idsCL[Green]}${NEWIP}"
echo
if ([ "${OLDIP}" != "" ] && [ "${NEWIP}" != "" ] && [[ "${OLDIP}" != *";"* ]] && [[ "${NEWIP}" != *";"* ]] && [ "${OLDIP}" == "${NEWIP}" ]) || [ ${FORCE} -eq 1 ]; then
if ([ "${OLDIP}" != "" ] && [ "${NEWIP}" != "" ] && [[ "${OLDIP}" != *";"* ]] && [[ "${NEWIP}" != *";"* ]] && [ "${OLDIP}" != "${NEWIP}" ]) || [ ${FORCE} -eq 1 ]; then
echo -en "${idsCL[Green]}'${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}' WAN IP has changed, ";
if [ ${TESTMODE} -eq 1 ]; then
echo -e "${idsCL[Yellow]}testmode active and will not update rcords${idsCL[Default]}"