easy-rsa/suse-packaging.patch

36 lines
1.0 KiB
Diff
Raw Normal View History

Index: easyrsa
===================================================================
--- easyrsa.orig
+++ easyrsa
@@ -1124,7 +1124,7 @@ vars_setup() {
vars=
# set up program path
- prog_vars="${0%/*}/vars"
+ prog_vars="/etc/easy-rsa/vars"
# set up PKI path
pki_vars="${EASYRSA_PKI:-$PWD/pki}/vars"
@@ -1154,7 +1154,7 @@ Note: using Easy-RSA configuration from:
fi
# Set defaults, preferring existing env-vars if present
- set_var EASYRSA "${0%/*}"
+ set_var EASYRSA "/etc/easy-rsa"
set_var EASYRSA_OPENSSL openssl
set_var EASYRSA_PKI "$PWD/pki"
set_var EASYRSA_DN cn_only
Index: vars.example
===================================================================
--- vars.example.orig
+++ vars.example
@@ -47,7 +47,7 @@ fi
# itself, which is also where the configuration files are located in the
# easy-rsa tree.
-#set_var EASYRSA "${0%/*}"
+#set_var EASYRSA "/etc/easy-rsa"
# If your OpenSSL command is not in the system PATH, you will need to define the
# path to it here. Normally this means a full path to the executable, otherwise