Fix sed line deletion part 2

This commit is contained in:
randomshell 2020-04-04 23:03:28 +00:00 committed by GitHub
parent 7688483766
commit a8c1e2a380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1128,7 +1128,7 @@ function revokeClient () {
function removeUnbound () { function removeUnbound () {
# Remove OpenVPN-related config # 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 rm /etc/unbound/openvpn.conf
systemctl restart unbound systemctl restart unbound