Update nodemgmt-scripts.sh
This commit is contained in:
@@ -525,9 +525,9 @@ UPDATE_DYNDNS(){
|
||||
exit 1
|
||||
fi
|
||||
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 -en "${idsCL[LightCyan]}Previous WAN IP ${idsCL[White]}: "
|
||||
echo -en "${idsCL[White]}Previous WAN IP ${idsCL[White]}: "
|
||||
|
||||
if [ "${LOCATION}" == "mainsite" ]; then
|
||||
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`
|
||||
fi
|
||||
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`
|
||||
echo -e "${idsCL[Green]}${NEWIP}"
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user