Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vars file: Allow 'EASYRSA_VARS_FILE' to be set externally #924

Merged
merged 1 commit into from
Apr 4, 2023

Conversation

TinCanTech
Copy link
Collaborator

The preferred way to set a user defined 'vars' file is to use global option '--vars='. Therefore, the current code erronously does not check for externally set 'EASYRSA_VARS_FILE'.

This change now looks for a user defined 'vars' file by checking if 'EASYRSA_VARS_FILE' is defined, instead of 'user_vars_true'.

Also, move other automated 'vars' file locating to after the check for user defined 'vars'.

Wrap long lines in set_var().

@TinCanTech TinCanTech self-assigned this Apr 2, 2023
@TinCanTech TinCanTech added this to the v3.1.3 - 13/10/2023 milestone Apr 2, 2023
@TinCanTech TinCanTech linked an issue Apr 2, 2023 that may be closed by this pull request
The preferred way to set a user defined 'vars' file is to use global
option '--vars=<vars-file>'. Therefore, the current code erronously
does not check for externally set 'EASYRSA_VARS_FILE'.

This change now looks for a user defined 'vars' file by checking if
'EASYRSA_VARS_FILE' is defined, instead of 'user_vars_true'.

Also, move other automated 'vars' file locating to after the check
for user defined 'vars'.

Wrap long lines in set_var().

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
@TinCanTech TinCanTech added the Community reveiwed Genuine community participation label Apr 4, 2023
@TinCanTech TinCanTech merged commit a7cecaf into OpenVPN:master Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EASYRSA_VARS_FILE ignored
1 participant