From b27d7b32918cdb88f47b4e999082b572077e5294 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 12 Mar 2024 10:24:36 -0500 Subject: [PATCH] Update update-dns.sh --- update-dns.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/update-dns.sh b/update-dns.sh index 389b061..f424d72 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -32,6 +32,7 @@ case "$choice" in * ) if [ -f /etc/netplan/eth0.yaml ] || [ -f /etc/netplan/network.yaml ]; then if [ "${1}" = "offsite" ]; then + sed -i 's/10.2.1.5,10.2.1.6,10.10.10.5/10.2.1.2,10.10.10.5/g' ${netfile} sed -i 's/10.10.10.10,10.10.10.11/10.2.1.5,10.2.1.6,10.10.10.5/g' ${netfile} sed -i 's/10.2.1.2,10.10.10.5/10.2.1.5,10.2.1.6,10.10.10.5/g' ${netfile} sed -i 's/127.0.0.1,10.10.10.10/10.2.1.5,10.2.1.6,10.10.10.5/g' ${netfile} @@ -46,7 +47,8 @@ case "$choice" in cat ${netfile} else if [ "${1}" = "offsite" ]; then - sed -i 's/10.10.10.10 10.10.10.11/10.10.10.10 10.10.10.11 10.2.1.2/g' ${netfile} + sed -i 's/10.10.10.10 10.10.10.11 10.2.1.2/10.2.1.2 10.10.10.5/g' ${netfile} + sed -i 's/10.10.10.10 10.10.10.11/10.2.1.2 10.10.10.5/g' ${netfile} else sed -i 's/10.10.10.10 10.10.10.11 10.2.1.2/10.10.10.5 10.2.1.2/g' ${netfile} sed -i 's/10.10.10.10 10.10.10.11/10.10.10.5 10.2.1.2/g' ${netfile}