Interpolate strings using ${}

This commit is contained in:
angristan 2018-09-15 15:13:36 +02:00
parent 76c2d33738
commit 9db909baa1

View file

@ -86,12 +86,12 @@ function getNIC () {
function installEasyRsa () { function installEasyRsa () {
local version='3.0.4' local version='3.0.4'
wget -O ~/EasyRSA-$version.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v$version/EasyRSA-$version.tgz wget -O ~/EasyRSA-${version}.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v${version}/EasyRSA-${version}.tgz
tar xzf ~/EasyRSA-$version.tgz -C ~/ tar xzf ~/EasyRSA-${version}.tgz -C ~/
mv ~/EasyRSA-$version/ /etc/openvpn/ mv ~/EasyRSA-${version}/ /etc/openvpn/
mv /etc/openvpn/EasyRSA-$version/ /etc/openvpn/easy-rsa/ mv /etc/openvpn/EasyRSA-${version}/ /etc/openvpn/easy-rsa/
chown -R root:root /etc/openvpn/easy-rsa/ chown -R root:root /etc/openvpn/easy-rsa/
rm -f ~/EasyRSA-$version.tgz rm -f ~/EasyRSA-${version}.tgz
} }
function newClient () { function newClient () {