1
0
mirror of https://github.com/vdm-io/dynamic-ip.git synced 2024-12-04 16:23:13 +00:00

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

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"