CentOS: Make sure epel-release is installed before openvpn

This commit is contained in:
angristan 2018-09-27 22:09:12 +02:00
parent 9716e868a0
commit e231c8924a
1 changed files with 2 additions and 1 deletions

View File

@ -567,7 +567,8 @@ function installOpenVPN () {
# Ubuntu > 16.04 and Debian > 8 have OpenVPN >= 2.4 without the need of a third party repository.
apt-get install openvpn iptables openssl wget ca-certificates curl -y
elif [[ "$OS" = 'centos' ]]; then
yum install epel-release openvpn iptables openssl wget ca-certificates curl -y
yum install epel-release
yum install openvpn iptables openssl wget ca-certificates curl -y
elif [[ "$OS" = 'fedora' ]]; then
dnf install openvpn iptables openssl wget ca-certificates curl -y
elif [[ "$OS" = 'arch' ]]; then