From 4bf94a3af574d83d97bf4b16226ff62729a73e73 Mon Sep 17 00:00:00 2001 From: randomshell <43271778+randomshell@users.noreply.github.com> Date: Mon, 2 Mar 2020 21:31:25 +0000 Subject: [PATCH] Install `semanage` command on CentoOS CentOS has selinux enabled by default but it hasn't the `semanage` command required to run OpenVPN on another port. 'policycoreutils-python*' match `policycoreutils-python' in CentOS 7 and `policycoreutils-python-utils` in Centos 8. --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 90ea433..ad7f9e1 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -624,7 +624,7 @@ function installOpenVPN () { apt-get install -y openvpn iptables openssl wget ca-certificates curl elif [[ "$OS" = 'centos' ]]; then yum install -y epel-release - yum install -y openvpn iptables openssl wget ca-certificates curl tar + yum install -y openvpn iptables openssl wget ca-certificates curl tar 'policycoreutils-python*' elif [[ "$OS" = 'amzn' ]]; then amazon-linux-extras install -y epel yum install -y openvpn iptables openssl wget ca-certificates curl