Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-14 15:39:38 -06:00
parent 2ce0214b5d
commit bf91aacb4f

View File

@@ -499,7 +499,6 @@ ADD_LOGROTATE_CRONTAB(){
}
UPDATE_DYNDNS(){
echo
TESTMODE=0; FORCE=0;
while [ $# -gt 0 ]; do
case "$1" in
@@ -519,6 +518,7 @@ UPDATE_DYNDNS(){
shift
done
if [ "${LOCATION}" == "mainsite" ] || [ "${LOCATION}" == "offsite" ] || [ "${LOCATION}" == "kyle" ]; then
echo
if [ "${NM_DYNUSER}" == "" ] || [ "${NM_DYNPASS}" == "" ]; then
echo "Missing DYNDNS username or password (NM_DYNUSER=${NM_DYNUSER}) (NM_DYNPASS=${NM_DYNPASS})"
SENDNOTICE "${LOCATION^^} DYNDNS ERROR" "Missing DYNDNS username or password (NM_DYNUSER=${NM_DYNUSER}) (NM_DYNPASS=${NM_DYNPASS})" 1