mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-22 00:39:03 +01:00
Uninstallation: restart unbound only if not removed (#612)
This commit is contained in:
parent
7e7a494f59
commit
6e8aeb3505
@ -1130,7 +1130,6 @@ function removeUnbound () {
|
|||||||
# Remove OpenVPN-related config
|
# 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/unbound/openvpn.conf
|
||||||
systemctl restart unbound
|
|
||||||
|
|
||||||
until [[ $REMOVE_UNBOUND =~ (y|n) ]]; do
|
until [[ $REMOVE_UNBOUND =~ (y|n) ]]; do
|
||||||
echo ""
|
echo ""
|
||||||
@ -1157,6 +1156,7 @@ function removeUnbound () {
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Unbound removed!"
|
echo "Unbound removed!"
|
||||||
else
|
else
|
||||||
|
systemctl restart unbound
|
||||||
echo ""
|
echo ""
|
||||||
echo "Unbound wasn't removed."
|
echo "Unbound wasn't removed."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user