From 57c9d3e01a47beeece457bcb96e75e51e8ed7b48 Mon Sep 17 00:00:00 2001 From: kaibae19 <99116238+kaibae19@users.noreply.github.com> Date: Mon, 4 Apr 2022 08:05:28 -0700 Subject: [PATCH] Update system.sh --- setup/system.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup/system.sh b/setup/system.sh index 75bdfd79..3bb5c7c9 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -365,8 +365,12 @@ fi # Restart the DNS services. -restart_service bind9 -systemctl restart systemd-resolved +if [ "$INSTALL" == "m" ]; then + restart_service bind9 + systemctl restart systemd-resolved +else + service restart bind9 +fi # ### Fail2Ban Service