From a8c1e2a38083e059823574160df1b4cf9b1c10d4 Mon Sep 17 00:00:00 2001 From: randomshell <43271778+randomshell@users.noreply.github.com> Date: Sat, 4 Apr 2020 23:03:28 +0000 Subject: [PATCH] Fix sed line deletion part 2 --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 1391141..408ecd2 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1128,7 +1128,7 @@ function revokeClient () { function removeUnbound () { # Remove OpenVPN-related config - sed -i 's|include: \/etc\/unbound\/openvpn.conf||' /etc/unbound/unbound.conf + sed -i '/include: \/etc\/unbound\/openvpn.conf/d' /etc/unbound/unbound.conf rm /etc/unbound/openvpn.conf systemctl restart unbound