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