Browse Source

Fixed typo inside fixdsrrs.sh script

pull/1/head 4.0.1-2
Fábio Kaiser Rauber 8 years ago
parent
commit
414be8bf1f
  1. 3
      pdns/fixdsrrs.sh

3
pdns/fixdsrrs.sh

@ -29,8 +29,7 @@ while read -r d; do
# $d is not a top domain
TOPDOM="${dcs[-3]}.${dcs[-2]}.${dcs[-1]}."
# get current DNS for $d
CURRDSRAW=`curl -s -f -X GET --data '{"rrsets": [ { "name": "'"$TOPDOM"'." } ] }' -H "X-API-Key: $
PDNSCONF_API_KEY" $APISERVER/api/v1/servers/localhost/zones/$TOPDOM`
CURRDSRAW=`curl -s -f -X GET --data '{"rrsets": [ { "name": "'"$TOPDOM"'." } ] }' -H "X-API-Key: $PDNSCONF_API_KEY" $APISERVER/api/v1/servers/localhost/zones/$TOPDOM`
if [ $? -ne 0 ]; then
echo "Domain $TOPDOM does not exist in this server. Skipping $d.."
continue

Loading…
Cancel
Save