update
This commit is contained in:
@@ -506,7 +506,7 @@ UPDATE_DYNDNS(){
|
||||
esac
|
||||
shift
|
||||
done
|
||||
if [ "${LOCATION,,}" == "mainsite" ] || [ "${LOCATION,,}" == "offsite" ] || [ "${LOCATION,,}" == "kyle" ]; then
|
||||
if [ "${NM_DYNDNS_LOC}" != "" ] && [ "${NM_DYNDNS_LOC[${LOCATION,,}]}" != "" ]; then
|
||||
echo
|
||||
cw_spc=10
|
||||
echo -e "Checking for DYNDNS update at '${idsCL[Green]}${LOCATION^^}${idsCL[Default]}'"
|
||||
@@ -530,7 +530,7 @@ UPDATE_DYNDNS(){
|
||||
if [ ${TESTMODE} -eq 1 ]; then
|
||||
echo -e "${idsCL[Green]}'${idsCL[LightCyan]}${LOCATION^^}${idsCL[Green]}' WAN IP has changed: ${idsCL[Yellow]}testmode active and will not update records${idsCL[Default]}"
|
||||
echo -en "\nDYNDNS Credential Test: "
|
||||
if [ "$(/usr/bin/curl -s "https://${NM_DYNUSER}:${NM_DYNPASS}@wdns.scity.us/nic/update?hostname=sc1.scity.us")" == "good" ]; then
|
||||
if [ "$(curl -sL "https://${NM_DYNUSER}df:${NM_DYNPASS}@wdns.scity.us/domain/scity.us" | grep "HTTP 403 Error")" == "" ]; then
|
||||
echo -e "${idsCL[Green]}Pass${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[LightRed]}Fail${idsCL[Default]}"
|
||||
|
||||
Reference in New Issue
Block a user