Full path to remove include openvpn.conf

Full path to remove include of /etc/unbound/unbound.conf.d/openvpn.conf,
and missing ":" after the "include".
This commit is contained in:
Henry N 2020-04-01 23:53:36 +02:00 committed by GitHub
parent d744222674
commit 6e21a54081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1094,7 +1094,7 @@ function revokeClient () {
function removeUnbound () {
# Remove OpenVPN-related config
sed -i '/include .*\/openvpn.conf/d' /etc/unbound/unbound.conf
sed -i '/include: \/etc\/unbound\/unbound\.conf\.d\/openvpn\.conf/d' /etc/unbound/unbound.conf
rm /etc/unbound/unbound.conf.d/openvpn.conf
systemctl restart unbound