From a88c9e77f721a4ec1052d6adb9fc4dfad9547688 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Tue, 20 Aug 2024 11:36:59 +0200 Subject: [PATCH] Update INSTALL.sh --- INSTALL.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/INSTALL.sh b/INSTALL.sh index 553ae419..46f2a042 100644 --- a/INSTALL.sh +++ b/INSTALL.sh @@ -1198,7 +1198,11 @@ setup_bind(){ echo "" mkdir -p /etc/bind/ cp -r /etc/openpanel/bind9/* /etc/bind/ - echo " DNSStubListener=no" >> /etc/systemd/resolved.conf && systemctl restart systemd-resolved + + # only on ubuntu systemd-resolved is installed + if [ -f /etc/os-release ] && grep -q "Ubuntu" /etc/os-release; then + echo " DNSStubListener=no" >> /etc/systemd/resolved.conf && systemctl restart systemd-resolved + fi } send_install_log(){