From 20bec82434899fe9099159a120cb3348c6ea1b4b Mon Sep 17 00:00:00 2001 From: Jim Ford Date: Wed, 27 Sep 2017 14:08:01 -0400 Subject: [PATCH] added or to line 36 to fix aws linux ami setup --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 1e3fbf1..635746a 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -33,7 +33,7 @@ if [[ -e /etc/debian_version ]]; then OS=debian GROUPNAME=nogroup RCLOCAL='/etc/rc.local' -elif [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then +elif [[ -e /etc/centos-release || -e /etc/redhat-release || /etc/system-release ]]; then OS=centos GROUPNAME=nobody RCLOCAL='/etc/rc.d/rc.local' @@ -418,4 +418,4 @@ verb 3" > /etc/openvpn/client-common.txt echo "" echo "Your client configuration is available at" ~/"$CLIENT.ovpn" echo "If you want to add more clients, you simply need to run this script again!" -fi \ No newline at end of file +fi