mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Changed output file name.
This commit is contained in:
parent
8e3fa6af78
commit
2f93c08aa2
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue