removeUnbound: without reatsrt before uninstall
Not need to restart unbound, if it would be complete uninstalled later. Move the restart into the else condition.
This commit is contained in:
parent
7e7a494f59
commit
f483f9ae4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue