From 4726de436c988faeedd0c6369484250aaf252326 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Aug 2025 19:14:22 -0500 Subject: [PATCH] Update update-dns.sh --- update-dns.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/update-dns.sh b/update-dns.sh index 5570d75..3eda3d1 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -32,25 +32,25 @@ case "$choice" in ;; * ) if [ -f /etc/netplan/eth0.yaml ] || [ -f /etc/netplan/network.yaml ]; then - if [ "${1}" = "offsite" ]; then + # if [ "${1}" = "offsite" ]; then sed -i 's/10.2.1.2,10.10.10.5/10.2.1.6,10.2.1.5/g' ${netfile} - sed -i 's/127.0.0.1,10.10.10.5/127.0.0.1,10.2.1.6/g' ${netfile} - else + # sed -i 's/127.0.0.1,10.10.10.5/127.0.0.1,10.2.1.6/g' ${netfile} + # else sed -i 's/10.10.10.5,10.2.1.2/10.10.10.10,10.10.10.11/g' ${netfile} sed -i 's/10.10.10.11,10.10.10.10/10.10.10.10,10.10.10.11/g' ${netfile} # sed -i 's/127.0.0.1,10.10.10.10,10.2.1.2/127.0.0.1,10.10.10.10/g' ${netfile} # sed -i 's/127.0.0.1,10.10.10.11,10.2.1.2/127.0.0.1,10.10.10.11/g' ${netfile} - fi + # fi /usr/sbin/netplan apply else - if [ "${1}" = "offsite" ]; then + # if [ "${1}" = "offsite" ]; then sed -i 's/10.2.1.2 10.10.10.5/10.2.1.6 10.2.1.5/g' ${netfile} - else + # else sed -i 's/10.10.10.5 10.2.1.2/10.10.10.11 10.10.10.10/g' ${netfile} sed -i 's/10.10.10.11 10.10.10.10/10.10.10.10 10.10.10.11/g' ${netfile} - fi + # fi /usr/sbin/service networking restart