From 025dccb32004e2d2eff000b1497e47b2ba40e1ab Mon Sep 17 00:00:00 2001 From: Oleg Ferens Date: Tue, 14 Aug 2018 00:01:48 +0300 Subject: [PATCH] /etc/os-release used in Amazon Linux AMI --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 403e0fd..ecdae07 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -26,7 +26,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 || -e /etc/os-release ]]; then OS=centos GROUPNAME=nobody RCLOCAL='/etc/rc.d/rc.local'