Changed output file name.

This commit is contained in:
TimmThaler 2017-11-06 11:19:10 +01:00 committed by GitHub
parent 8e3fa6af78
commit 2f93c08aa2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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