Update nodemgmt-scripts.sh
This commit is contained in:
@@ -543,7 +543,7 @@ UPDATE_DYNDNS(){
|
|||||||
echo
|
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]}${LOCATION^} WAN IP has changed, ";
|
echo -en "${idsCL[Green]}'${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}' WAN IP has changed, ";
|
||||||
if [ ${TESTMODE} -eq 1 ]; then
|
if [ ${TESTMODE} -eq 1 ]; then
|
||||||
echo -e "${idsCL[Yellow]}testmode active and will not update rcords${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}testmode active and will not update rcords${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
@@ -584,7 +584,7 @@ UPDATE_DYNDNS(){
|
|||||||
elif [ "${NEWIP}" == "" ]; then
|
elif [ "${NEWIP}" == "" ]; then
|
||||||
echo -e "${idsCL[Red]}Could not get Current WAN IP${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Could not get Current WAN IP${idsCL[Default]}"
|
||||||
else
|
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
|
fi
|
||||||
else
|
else
|
||||||
[ "${LOCATION}" == "" ] && echo -e "\n${idsCL[Red]}No DYNDNS location specified" || echo -e "\n${idsCL[Red]}DYNDNS location '${LOCATION}' not recognized"
|
[ "${LOCATION}" == "" ] && echo -e "\n${idsCL[Red]}No DYNDNS location specified" || echo -e "\n${idsCL[Red]}DYNDNS location '${LOCATION}' not recognized"
|
||||||
|
|||||||
Reference in New Issue
Block a user