Update nodemgmt-scripts.sh
This commit is contained in:
@@ -525,9 +525,9 @@ UPDATE_DYNDNS(){
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
cw_spc=10
|
cw_spc=10
|
||||||
echo -e "${idsCL[Yellow]}Checking for DYNDNS update at '${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}' ... ${idsCL[Default]}"
|
echo -e "${idsCL[Yellow]}Checking for DYNDNS update at '${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}'${idsCL[Default]}"
|
||||||
echo
|
echo
|
||||||
echo -en "${idsCL[LightCyan]}Previous WAN IP ${idsCL[White]}: "
|
echo -en "${idsCL[White]}Previous WAN IP ${idsCL[White]}: "
|
||||||
|
|
||||||
if [ "${LOCATION}" == "mainsite" ]; then
|
if [ "${LOCATION}" == "mainsite" ]; then
|
||||||
OLDIP=`dig +short sc1.scity.us @wdns.scity.us +time=2`
|
OLDIP=`dig +short sc1.scity.us @wdns.scity.us +time=2`
|
||||||
@@ -537,7 +537,7 @@ UPDATE_DYNDNS(){
|
|||||||
OLDIP=`dig +short wan.pattonfam.com @wdns.scity.us +time=2`
|
OLDIP=`dig +short wan.pattonfam.com @wdns.scity.us +time=2`
|
||||||
fi
|
fi
|
||||||
echo -e "${idsCL[Cyan]}${OLDIP}"
|
echo -e "${idsCL[Cyan]}${OLDIP}"
|
||||||
echo -en "${idsCL[LightCyan]}Current WAN IP ${idsCL[White]}: "
|
echo -en "${idsCL[White]}Current WAN IP ${idsCL[White]}: "
|
||||||
NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com +time=2`
|
NEWIP=`dig +short myip.opendns.com @resolver1.opendns.com +time=2`
|
||||||
echo -e "${idsCL[Green]}${NEWIP}"
|
echo -e "${idsCL[Green]}${NEWIP}"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user