diff --git a/scripts/convert.openvpnconnect.sh b/scripts/convert.openvpnconnect.sh index 3c432e0..b962d4b 100644 --- a/scripts/convert.openvpnconnect.sh +++ b/scripts/convert.openvpnconnect.sh @@ -53,7 +53,7 @@ openssl rsa -aes256 -in "$ovpnout/$client.tmp.$fileext" -out "$ovpnout/$client.t key=$(cat "$ovpnout/$client.tmp.key") # replace the rsa key with the new aes key and output to new opvn file -awk -v values="${key}" '//{p=1;print;printf values; printf "\n"}/<\/key>/{p=0}!p' "$ovpnout/$client.tmp.$fileext" > "$ovpnout/$client.ios.$fileext" +awk -v values="${key}" '//{p=1;print;printf values; printf "\n"}/<\/key>/{p=0}!p' "$ovpnout/$client.tmp.$fileext" > "$ovpnout/$client.openvpnconnect.$fileext" # delete tmp files rm -f "$ovpnout/$client.tmp.key"