Update nodemgmt-scripts.sh

This commit is contained in:
2023-11-15 08:30:42 -06:00
parent 6ef4de4daa
commit 44b3f82831

View File

@@ -534,7 +534,7 @@ UPDATE_DYNDNS(){
if [ "${NM_DYNUSER}" != "" ] && [ "${NM_DYNPASS}" != "" ]; then
if [ "$(/usr/bin/curl -m 3 -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update")" != "" ]; then
for host in ${DYNDNS_HOSTS[@]}; do
echo "update host: $host"
/usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=${host}&myip=${NEWIP}" > /dev/null 2>&1
done
# if [ "${LOCATION,,}" == "mainsite" ]; then
# #external dns