Uninstallation: restart unbound only if not removed (#612)

This commit is contained in:
Henry N 2020-04-06 14:41:10 +02:00 committed by GitHub
parent 7e7a494f59
commit 6e8aeb3505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1130,7 +1130,6 @@ function removeUnbound () {
# Remove OpenVPN-related config
sed -i 's|include: \/etc\/unbound\/openvpn.conf||' /etc/unbound/unbound.conf
rm /etc/unbound/openvpn.conf
systemctl restart unbound
until [[ $REMOVE_UNBOUND =~ (y|n) ]]; do
echo ""
@ -1157,6 +1156,7 @@ function removeUnbound () {
echo ""
echo "Unbound removed!"
else
systemctl restart unbound
echo ""
echo "Unbound wasn't removed."
fi