1
0
mirror of https://github.com/namibia/demo-sync.git synced 2024-11-22 03:25:09 +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 else
tmpFile=$(getKey) tmpFile=$(getKey)
# first remove old IPs # first remove old IPs
grep -v "^${row[1]}" "$FILEPATH" > "/tmp/vdm_$tmpFile" grep -v "^${row[1]} " "$FILEPATH" > "/tmp/vdm_$tmpFile"
# start notice # start notice
echoTweak "DNS Adding A Record for IP (${row[2]})" echoTweak "DNS Adding A Record for IP (${row[2]})"
echo "started" echo "started"