embed into ovpn client file
Hi, I'd like to inline embed the ca.crt's data into the client.conf file like this:
Code:
cat base.conf Code:
bash: /dev/fd/63: Permission denied |
It should be in one line. Or use line continuation character at end of each line, it is backslash in Bash (\).
|
This was the solution, thanks though
#!/bin/bash f=$1 cat base.conf > client"$1".ovpn echo <ca> >> client"$1".ovpn cat ~/client-configs/keys/ca.crt >> client"$1".ovpn echo </ca> >> client"$1".ovpn etc... |
All times are GMT -5. The time now is 03:29 PM. |