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:
parent
b8d7b10ea7
commit
70cacd697b
2
getip.sh
2
getip.sh
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user