mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-23 21:46:08 +03:00
Fix #762
Variables which can be empty, shouldn't be quoted in this situation.
This commit is contained in:
parent
bfdd480076
commit
366d46a8cc
@ -216,13 +216,13 @@ LimitNPROC=infinity" > /etc/systemd/system/openvpn-server@server.service.d/disab
|
|||||||
fi
|
fi
|
||||||
if [[ "$os" = "debian" || "$os" = "ubuntu" ]]; then
|
if [[ "$os" = "debian" || "$os" = "ubuntu" ]]; then
|
||||||
apt-get update
|
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
|
elif [[ "$os" = "centos" ]]; then
|
||||||
yum install -y epel-release
|
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
|
||||||
# Else, OS must be Fedora
|
# Else, OS must be Fedora
|
||||||
dnf install -y openvpn openssl ca-certificates tar "$firewall"
|
dnf install -y openvpn openssl ca-certificates tar $firewall
|
||||||
fi
|
fi
|
||||||
# If firewalld was just installed, enable it
|
# If firewalld was just installed, enable it
|
||||||
if [[ "$firewall" == "firewalld" ]]; then
|
if [[ "$firewall" == "firewalld" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user