From 6dc63dbad4c852edaefd50a754991c1bf1cd4f32 Mon Sep 17 00:00:00 2001 From: Ben Yanke Date: Sun, 8 May 2016 23:22:39 -0500 Subject: [PATCH] fixing syntax errors --- openvpn-install.sh | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 8f5577c..1ef4252 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -49,16 +49,17 @@ newclient () { mkdir $baseFolder -p # Generates the custom client.ovpn - cp /etc/openvpn/client-common.txt $baseFolder/$1.ovpn - echo "" >> $baseFolder/$1.ovpn - cat /etc/openvpn/easy-rsa/pki/ca.crt >> $baseFolder/$1.ovpn - echo "" >> $baseFolder/$1.ovpn - echo "" >> $baseFolder/$1.ovpn - cat /etc/openvpn/easy-rsa/pki/issued/$1.crt >> $baseFolder/$1.ovpn - echo "" >> $baseFolder/$1.ovpn - echo "" >> $baseFolder/$1.ovpn - cat /etc/openvpn/easy-rsa/pki/private/$1.key >> $baseFolder/$1.ovpn - echo "" >> $baseFolder/$1.ovpn + touch "$baseFolder/$1.ovpn" + cp /etc/openvpn/client-common.txt "$baseFolder/$1.ovpn" + echo "" >> "$baseFolder/$1.ovpn" + cat /etc/openvpn/easy-rsa/pki/ca.crt >> "$baseFolder/$1.ovpn" + echo "" >> "$baseFolder/$1.ovpn" + echo "" >> "$baseFolder/$1.ovpn" + cat /etc/openvpn/easy-rsa/pki/issued/$1.crt >> "$baseFolder/$1.ovpn" + echo "" >> "$baseFolder/$1.ovpn" + echo "" >> "$baseFolder/$1.ovpn" + cat /etc/openvpn/easy-rsa/pki/private/$1.key >> "$baseFolder/$1.ovpn" + echo "" >> "$baseFolder/$1.ovpn" }