From de4a5f4d16665609133915d4ed7ae34d09e457ed Mon Sep 17 00:00:00 2001 From: angristan Date: Sat, 15 Sep 2018 20:01:43 +0200 Subject: [PATCH] Fix dir --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index e255171..6e8cf65 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -197,7 +197,7 @@ private-address: ::ffff:0:0/96" >> /etc/unbound/unbound.conf # Add OpenVPN integration echo 'server: interface: 10.8.0.1 - access-control: 10.8.0.1/24 allow' >> /etc/unbound/${UNBOUND_CONF_D}/openvpn.conf + access-control: 10.8.0.1/24 allow' >> ${UNBOUND_CONF_D}/openvpn.conf # Restart the service systemctl restart unbound @@ -353,7 +353,7 @@ if [[ -e /etc/openvpn/server.conf ]]; then UNBOUND_CONF_D="/etc/unbound/unbound.conf.d" fi - rm /etc/unbound/${UNBOUND_CONF_D}/openvpn.conf + rm ${UNBOUND_CONF_D}/openvpn.conf read -rp "Do you want to remove Unbound, too? [y/n]: " -e REMOVE