From 5a67d3b3e71be321b117d6be3065397c3481b06a Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 23 Sep 2018 16:30:48 +0200 Subject: [PATCH] Fix regex --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 2a0b7f3..2ce215b 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1056,7 +1056,7 @@ function removeOpenVPN () { PORT=$(grep '^port ' /etc/openvpn/server.conf | cut -d " " -f 2) # Stop OpenVPN - if [[ "$OS" = (fedora|arch) ]]; then + if [[ "$OS" =~ (fedora|arch) ]]; then systemctl disable openvpn-server@server systemctl stop openvpn-server@server elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then