From 8de3957afb1dc58b5fdcc28f482b9cb3cef130f6 Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 23 Sep 2018 14:32:24 +0200 Subject: [PATCH] Disable and stop OpenVPN upon removal --- openvpn-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index d42510e..9756cc8 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1009,8 +1009,13 @@ function removeOpenVPN () { # Stop OpenVPN if [[ "$OS" = 'fedora' ]]; then + systemctl disable openvpn-server@server systemctl stop openvpn-server@server + elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then + systemctl disable openvpn + systemctl stop openvpn else + systemctl disable openvpn@server systemctl stop openvpn@server fi