mirror of
https://github.com/angristan/openvpn-install.git
synced 2024-11-25 02:09:03 +01:00
Disable and stop OpenVPN upon removal
This commit is contained in:
parent
7f35106687
commit
8de3957afb
@ -1009,8 +1009,13 @@ function removeOpenVPN () {
|
|||||||
|
|
||||||
# Stop OpenVPN
|
# Stop OpenVPN
|
||||||
if [[ "$OS" = 'fedora' ]]; then
|
if [[ "$OS" = 'fedora' ]]; then
|
||||||
|
systemctl disable openvpn-server@server
|
||||||
systemctl stop openvpn-server@server
|
systemctl stop openvpn-server@server
|
||||||
|
elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then
|
||||||
|
systemctl disable openvpn
|
||||||
|
systemctl stop openvpn
|
||||||
else
|
else
|
||||||
|
systemctl disable openvpn@server
|
||||||
systemctl stop openvpn@server
|
systemctl stop openvpn@server
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user