easy-rsa/suse-packaging.patch

37 lines
937 B
Diff

*** easyrsa3/easyrsa.orig 2017-07-18 23:46:26.431057777 +0200
--- easyrsa3/easyrsa 2017-07-19 05:24:59.583924924 +0200
***************
*** 1014,1020 ****
local vars=
# set up program path
! local prog_vars="${0%/*}/vars"
# set up PKI path
local pki_vars="${EASYRSA_PKI:-$PWD/pki}/vars"
--- 1014,1020 ----
local vars=
# set up program path
! local prog_vars="/etc/easy-rsa/vars"
# set up PKI path
local pki_vars="${EASYRSA_PKI:-$PWD/pki}/vars"
***************
*** 1041,1047 ****
fi
# Set defaults, preferring existing env-vars if present
! set_var EASYRSA "${0%/*}"
set_var EASYRSA_OPENSSL openssl
set_var EASYRSA_PKI "$PWD/pki"
set_var EASYRSA_DN cn_only
--- 1041,1047 ----
fi
# Set defaults, preferring existing env-vars if present
! set_var EASYRSA "/etc/easy-rsa"
set_var EASYRSA_OPENSSL openssl
set_var EASYRSA_PKI "$PWD/pki"
set_var EASYRSA_DN cn_only