Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-14 15:48:10 -06:00
parent 79085c02c4
commit f04e164ad9

View File

@@ -543,7 +543,7 @@ UPDATE_DYNDNS(){
echo
if ([ "${OLDIP}" != "" ] && [ "${NEWIP}" != "" ] && [[ "${OLDIP}" != *";"* ]] && [[ "${NEWIP}" != *";"* ]] && [ "${OLDIP}" == "${NEWIP}" ]) || [ ${FORCE} -eq 1 ]; then
echo -en "${idsCL[Green]}${LOCATION^} WAN IP has changed, ";
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]}"
else
@@ -584,7 +584,7 @@ UPDATE_DYNDNS(){
elif [ "${NEWIP}" == "" ]; then
echo -e "${idsCL[Red]}Could not get Current WAN IP${idsCL[Default]}"
else
echo -e "${idsCL[Green]}'${idsCL[Green]}${LOCATION^^}${idsCL[Green]}' WAN IP has not changed${idsCL[Default]}"
echo -e "${idsCL[Green]}'${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}' WAN IP has not changed${idsCL[Default]}"
fi
else
[ "${LOCATION}" == "" ] && echo -e "\n${idsCL[Red]}No DYNDNS location specified" || echo -e "\n${idsCL[Red]}DYNDNS location '${LOCATION}' not recognized"