Scope environment overrides to EASYRSA

Merge branch 'javier-godoy-feature/sed' into v3.0.6

Signed-off-by: Eric F Crist <ecrist@secure-computing.net>
This commit is contained in:
Eric F Crist 2019-01-11 10:21:57 -06:00
commit e71f2013c7
No known key found for this signature in database
GPG Key ID: 72964219390D0D0E

View File

@ -314,7 +314,7 @@ prog_exit() {
# Make LibreSSL safe config file from OpenSSL config file # Make LibreSSL safe config file from OpenSSL config file
make_ssl_config() { make_ssl_config() {
sed \ sed \
-e "s\`ENV::\`\`g" \ -e "s\`ENV::EASYRSA\`EASYRSA\`g" \
-e "s\`\$dir\`$EASYRSA_PKI\`g" \ -e "s\`\$dir\`$EASYRSA_PKI\`g" \
-e "s\`\$EASYRSA_PKI\`$EASYRSA_PKI\`g" \ -e "s\`\$EASYRSA_PKI\`$EASYRSA_PKI\`g" \
-e "s\`\$EASYRSA_CERT_EXPIRE\`$EASYRSA_CERT_EXPIRE\`g" \ -e "s\`\$EASYRSA_CERT_EXPIRE\`$EASYRSA_CERT_EXPIRE\`g" \