From 6bb87ae716a1f4f85250bb2a71832602ad03bd3a Mon Sep 17 00:00:00 2001 From: randomshell <43271778+randomshell@users.noreply.github.com> Date: Sat, 14 Mar 2020 19:25:22 +0000 Subject: [PATCH] Install `semanage` command on CentoOS (#554) 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 0c63227..d6508b2 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -625,7 +625,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