1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-24 05:56:08 +03:00

fixing syntax errors

This commit is contained in:
Ben Yanke 2016-05-08 23:22:39 -05:00
parent 8a8c78fc1d
commit 6dc63dbad4

View File

@ -49,16 +49,17 @@ newclient () {
mkdir $baseFolder -p
# Generates the custom client.ovpn
cp /etc/openvpn/client-common.txt $baseFolder/$1.ovpn
echo "<ca>" >> $baseFolder/$1.ovpn
cat /etc/openvpn/easy-rsa/pki/ca.crt >> $baseFolder/$1.ovpn
echo "</ca>" >> $baseFolder/$1.ovpn
echo "<cert>" >> $baseFolder/$1.ovpn
cat /etc/openvpn/easy-rsa/pki/issued/$1.crt >> $baseFolder/$1.ovpn
echo "</cert>" >> $baseFolder/$1.ovpn
echo "<key>" >> $baseFolder/$1.ovpn
cat /etc/openvpn/easy-rsa/pki/private/$1.key >> $baseFolder/$1.ovpn
echo "</key>" >> $baseFolder/$1.ovpn
touch "$baseFolder/$1.ovpn"
cp /etc/openvpn/client-common.txt "$baseFolder/$1.ovpn"
echo "<ca>" >> "$baseFolder/$1.ovpn"
cat /etc/openvpn/easy-rsa/pki/ca.crt >> "$baseFolder/$1.ovpn"
echo "</ca>" >> "$baseFolder/$1.ovpn"
echo "<cert>" >> "$baseFolder/$1.ovpn"
cat /etc/openvpn/easy-rsa/pki/issued/$1.crt >> "$baseFolder/$1.ovpn"
echo "</cert>" >> "$baseFolder/$1.ovpn"
echo "<key>" >> "$baseFolder/$1.ovpn"
cat /etc/openvpn/easy-rsa/pki/private/$1.key >> "$baseFolder/$1.ovpn"
echo "</key>" >> "$baseFolder/$1.ovpn"
}