Update nodemgmt-scripts.sh

This commit is contained in:
2022-07-04 15:04:27 -05:00
parent daba2908ae
commit 560271a7cf

View File

@@ -1734,7 +1734,7 @@ ADD_LOGROTATE_CRONTAB(){
UPDATE_DYNDNS(){ UPDATE_DYNDNS(){
if [ "${1}" != 'q' ]; then if [ "${1}" != 'q' ]; then
echo -en "${idsCL[LightCyan]}Updating Primary DNS A records with any WAN IP changes... ${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Updating Primary DNS A records with any WAN IP changes... ${idsCL[Default]}"
fi fi
OLDIP=`dig +short sc2.scity.us @ns1.scity.us` OLDIP=`dig +short sc2.scity.us @ns1.scity.us`
@@ -1754,12 +1754,11 @@ UPDATE_DYNDNS(){
echo "DYNDNS Updated" | mail -s "Updated WAN IP from '${OLDIP}' to '${NEWIP}'" 9208839613@mms.att.net echo "DYNDNS Updated" | mail -s "Updated WAN IP from '${OLDIP}' to '${NEWIP}'" 9208839613@mms.att.net
if [ "${1}" != 'q' ]; then if [ "${1}" != 'q' ]; then
echo -en "${idsCL[Green]}Updated WAN IP from '${OLDIP}' to '${NEWIP}'${idsCL[Default]}" echo -e "${idsCL[Green]}Updated WAN IP from '${OLDIP}' to '${NEWIP}'${idsCL[Default]}"
fi fi
fi fi
if [ "${1}" != 'q' ]; then if [ "${1}" != 'q' ]; then
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
echo "" echo ""
read -n 1 -s -p "Press any key to continue" read -n 1 -s -p "Press any key to continue"
echo echo