From cee3978fe21a8d41ea34326540c02a56dc4eea38 Mon Sep 17 00:00:00 2001 From: angristan Date: Sat, 15 Sep 2018 21:05:18 +0200 Subject: [PATCH] Fixes and improvements --- openvpn-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 1c6e072..21c96d6 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -340,9 +340,10 @@ if [[ -e /etc/openvpn/server.conf ]]; then if [[ -e /etc/unbound/openvpn.conf ]]; then + # Remove OpenVPN-related config sed -i 's|include: \/etc\/unbound\/openvpn.conf||' /etc/unbound/unbound.conf - - rm /etc/openvpn/openvpn.conf + rm /etc/unbound/openvpn.conf + systemctl restart unbound until [[ $REMOVE_UNBOUND == "y" || $REMOVE_UNBOUND == "n" ]]; do echo ""