From 3b928b90440e33b07865587cb334a61e5e5a9549 Mon Sep 17 00:00:00 2001 From: b0n <0xicl33n@gmail.com> Date: Mon, 28 Nov 2016 03:20:05 -0800 Subject: [PATCH] Tested, ran sucessfully. Updating from local modifications. --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 2778609..ca4a0c1 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -38,7 +38,7 @@ elif [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then RCLOCAL='/etc/rc.d/rc.local' # Needed for CentOS 7 chmod +x /etc/rc.d/rc.local -else +elif [[ -e /usr/bin/pacman ]]; then #Else, OS is Arch OS=arch GROUPNAME=nobody @@ -161,7 +161,7 @@ if [[ -e /etc/openvpn/server.conf ]]; then apt-get remove --purge -y openvpn openvpn-blacklist elif [[ "$OS" = 'centos' ]]; then yum remove openvpn -y - elif [[ "$OS" = 'arch' ]]; then + else pacman -Rs openvpn --noconfirm fi rm -rf /etc/openvpn