Fixes and improvements

This commit is contained in:
angristan 2018-09-15 21:05:18 +02:00
parent 5bac40f7b4
commit cee3978fe2

View file

@ -340,9 +340,10 @@ if [[ -e /etc/openvpn/server.conf ]]; then
if [[ -e /etc/unbound/openvpn.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 sed -i 's|include: \/etc\/unbound\/openvpn.conf||' /etc/unbound/unbound.conf
rm /etc/unbound/openvpn.conf
rm /etc/openvpn/openvpn.conf systemctl restart unbound
until [[ $REMOVE_UNBOUND == "y" || $REMOVE_UNBOUND == "n" ]]; do until [[ $REMOVE_UNBOUND == "y" || $REMOVE_UNBOUND == "n" ]]; do
echo "" echo ""