Changet the grep search to insure only the sub domain with old IP's is removed

This commit is contained in:
Llewellyn van der Merwe 2017-07-25 12:08:57 +01:00
parent b8d7b10ea7
commit 70cacd697b
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ function setDNS () {
else
tmpFile=$(getKey)
# first remove old IPs
grep -v "^${row[1]}" "$FILEPATH" > "/tmp/vdm_$tmpFile"
grep -v "^${row[1]} " "$FILEPATH" > "/tmp/vdm_$tmpFile"
# start notice
echoTweak "DNS Adding A Record for IP (${row[2]})"
echo "started"