From 9716e868a021b6ea898e85288e29de552792af94 Mon Sep 17 00:00:00 2001 From: angristan Date: Thu, 27 Sep 2018 19:57:01 +0200 Subject: [PATCH] Fix service handling on Ubuntu 16.04 --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index cfc0754..a77b5d3 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -812,7 +812,7 @@ verb 3" >> /etc/openvpn/server.conf systemctl daemon-reload systemctl restart openvpn-server@server systemctl enable openvpn-server@server - elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then + elif [[ "$OS" == "ubuntu" ]] && [[ "$VERSION_ID" == "16.04" ]]; then # On Ubuntu 16.04, we use the package from the OpenVPN repo # This package uses a sysvinit service systemctl enable openvpn @@ -1095,7 +1095,7 @@ function removeOpenVPN () { systemctl stop openvpn-server@server # Remove customised service rm /etc/systemd/system/openvpn-server@.service - elif [[ "$OS" == 'debian' ]] && [[ "$VERSION_ID" == "16.04" ]]; then + elif [[ "$OS" == "ubuntu" ]] && [[ "$VERSION_ID" == "16.04" ]]; then systemctl disable openvpn systemctl stop openvpn else