Update nodemgmt-scripts.sh

This commit is contained in:
2023-08-09 20:19:24 -05:00
parent 15e0ff7e59
commit d8a288b600

View File

@@ -507,6 +507,12 @@ UPDATE_DYNDNS(){
echo -en "${idsCL[LightCyan]}Old IP ${idsCL[White]}: "
fi
if [ "${NM_DYNUSER}" == "" ] || [ "${NM_DYNPASS}" == "" ]; then
echo "Missing DYNDNS username or password (NM_DYNUSER=${NM_DYNUSER}) (NM_DYNPASS=${NM_DYNPASS})"
SENDNOTICE "${1^^} DYNDNS ERROR" "Missing DYNDNS username or password (NM_DYNUSER=${NM_DYNUSER}) (NM_DYNPASS=${NM_DYNPASS})"
exit 1
fi
if [ "${1}" == "home" ]; then
OLDIP=`dig +short sc1.scity.us @ns1.scity.us +time=2`
elif [ "${1}" == "offsite" ]; then