1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-23 13:36:08 +03:00
Variables which can be empty, shouldn't be quoted in this situation.
This commit is contained in:
Nyr 2020-05-25 17:23:55 +02:00
parent bfdd480076
commit 366d46a8cc

View File

@ -216,13 +216,13 @@ LimitNPROC=infinity" > /etc/systemd/system/openvpn-server@server.service.d/disab
fi
if [[ "$os" = "debian" || "$os" = "ubuntu" ]]; then
apt-get update
apt-get install -y openvpn openssl ca-certificates "$firewall"
apt-get install -y openvpn openssl ca-certificates $firewall
elif [[ "$os" = "centos" ]]; then
yum install -y epel-release
yum install -y openvpn openssl ca-certificates tar "$firewall"
yum install -y openvpn openssl ca-certificates tar $firewall
else
# Else, OS must be Fedora
dnf install -y openvpn openssl ca-certificates tar "$firewall"
dnf install -y openvpn openssl ca-certificates tar $firewall
fi
# If firewalld was just installed, enable it
if [[ "$firewall" == "firewalld" ]]; then