mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-24 14:06:07 +03:00
fixing syntax errors
This commit is contained in:
parent
8a8c78fc1d
commit
6dc63dbad4
@ -49,16 +49,17 @@ newclient () {
|
|||||||
mkdir $baseFolder -p
|
mkdir $baseFolder -p
|
||||||
|
|
||||||
# Generates the custom client.ovpn
|
# Generates the custom client.ovpn
|
||||||
cp /etc/openvpn/client-common.txt $baseFolder/$1.ovpn
|
touch "$baseFolder/$1.ovpn"
|
||||||
echo "<ca>" >> $baseFolder/$1.ovpn
|
cp /etc/openvpn/client-common.txt "$baseFolder/$1.ovpn"
|
||||||
cat /etc/openvpn/easy-rsa/pki/ca.crt >> $baseFolder/$1.ovpn
|
echo "<ca>" >> "$baseFolder/$1.ovpn"
|
||||||
echo "</ca>" >> $baseFolder/$1.ovpn
|
cat /etc/openvpn/easy-rsa/pki/ca.crt >> "$baseFolder/$1.ovpn"
|
||||||
echo "<cert>" >> $baseFolder/$1.ovpn
|
echo "</ca>" >> "$baseFolder/$1.ovpn"
|
||||||
cat /etc/openvpn/easy-rsa/pki/issued/$1.crt >> $baseFolder/$1.ovpn
|
echo "<cert>" >> "$baseFolder/$1.ovpn"
|
||||||
echo "</cert>" >> $baseFolder/$1.ovpn
|
cat /etc/openvpn/easy-rsa/pki/issued/$1.crt >> "$baseFolder/$1.ovpn"
|
||||||
echo "<key>" >> $baseFolder/$1.ovpn
|
echo "</cert>" >> "$baseFolder/$1.ovpn"
|
||||||
cat /etc/openvpn/easy-rsa/pki/private/$1.key >> $baseFolder/$1.ovpn
|
echo "<key>" >> "$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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user