Update nodemgmt-scripts.sh
This commit is contained in:
@@ -507,6 +507,12 @@ UPDATE_DYNDNS(){
|
|||||||
echo -en "${idsCL[LightCyan]}Old IP ${idsCL[White]}: "
|
echo -en "${idsCL[LightCyan]}Old IP ${idsCL[White]}: "
|
||||||
fi
|
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
|
if [ "${1}" == "home" ]; then
|
||||||
OLDIP=`dig +short sc1.scity.us @ns1.scity.us +time=2`
|
OLDIP=`dig +short sc1.scity.us @ns1.scity.us +time=2`
|
||||||
elif [ "${1}" == "offsite" ]; then
|
elif [ "${1}" == "offsite" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user