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