From 50406f75875129419f230a973567f92845bff33d Mon Sep 17 00:00:00 2001 From: root Date: Mon, 10 Oct 2022 18:46:44 +0000 Subject: [PATCH] Fixed dns script to work on reboot of a VM --- fstack/lib/checks.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fstack/lib/checks.sh b/fstack/lib/checks.sh index c584d22..a85badf 100644 --- a/fstack/lib/checks.sh +++ b/fstack/lib/checks.sh @@ -75,6 +75,8 @@ check_ports() { [ $? -eq 0 ] && echo -ne "." || failcheck "Failed running sudo apt install resolvconf" # Shut down systemd-resolved + systemctl disable systemd-resolved &> /dev/null + [ $? -ne 0 ] && failcheck "Failed running systemctl disable systemd-resolved" systemctl stop systemd-resolved [ $? -ne 0 ] && failcheck "Failed running systemctl stop systemd-resolved"