openvpn-easy-rsa: update to 3.0.4
[openwrt/openwrt.git] / package / network / services / openvpn-easy-rsa / patches / 101-static_EASYRSA.patch
1 --- a/easyrsa
2 +++ b/easyrsa
3 @@ -1033,7 +1033,7 @@ vars_setup() {
4 vars=
5
6 # set up program path
7 - prog_vars="${0%/*}/vars"
8 + prog_vars="/etc/easy-rsa/vars"
9 # set up PKI path
10 pki_vars="${EASYRSA_PKI:-$PWD/pki}/vars"
11
12 @@ -1060,7 +1060,7 @@ Note: using Easy-RSA configuration from:
13 fi
14
15 # Set defaults, preferring existing env-vars if present
16 - set_var EASYRSA "${0%/*}"
17 + set_var EASYRSA "/etc/easy-rsa"
18 set_var EASYRSA_OPENSSL openssl
19 set_var EASYRSA_PKI "$PWD/pki"
20 set_var EASYRSA_DN cn_only