From 741e4e827768ac3406adb9d78012cda840a6df4b Mon Sep 17 00:00:00 2001 From: derek-j-pitman <70220747+derek-j-pitman@users.noreply.github.com> Date: Mon, 5 Jul 2021 20:10:51 -0400 Subject: [PATCH] Add support for Rocky Linux 8 Since Rocky is attempting to replace CentOS as the "RHEL downstream" distro, I added it in the same place as CentOS in the checkOS function. --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 806d147..e99d78c 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -55,7 +55,7 @@ function checkOS() { if [[ $ID == "fedora" || $ID_LIKE == "fedora" ]]; then OS="fedora" fi - if [[ $ID == "centos" ]]; then + if [[ $ID == "centos" || $ID == "rocky" ]]; then OS="centos" if [[ ! $VERSION_ID =~ (7|8) ]]; then echo "⚠️ Your version of CentOS is not supported."