Skip to content

Commit 3e7ec14

Browse files
committed
Merge branch 'refactor-verify_working_env-lock-file' of ssh://github.com/TinCanTech/easy-rsa into TinCanTech-refactor-verify_working_env-lock-file
Signed-off-by: Richard T Bonhomme <[email protected]>
2 parents dc5e69d + 6a39c4b commit 3e7ec14

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

easyrsa3/easyrsa

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5789,10 +5789,8 @@ change these values.
57895789
${unexpected_error}"
57905790
} # => validate_default_vars()
57915791

5792-
# Verify working environment
5793-
verify_working_env() {
5794-
verbose "verify_working_env: BEGIN"
5795-
5792+
# Create PKI lock-file, as necessary
5793+
request_lock_file() {
57965794
# Create lock-file
57975795
create_lock_file_error=
57985796
if [ -d "${EASYRSA_PKI}" ]; then
@@ -5838,6 +5836,14 @@ lock-file removed - Please try running the easyrsa command again."
58385836
else
58395837
verbose "verify_working_env: lock-file not required."
58405838
fi
5839+
} # => request_lock_file()
5840+
5841+
# Verify working environment
5842+
verify_working_env() {
5843+
verbose "verify_working_env: BEGIN"
5844+
5845+
# Oppertunist PKI lock-file
5846+
request_lock_file
58415847

58425848
# For commands which 'require a PKI' and PKI exists
58435849
if [ "$require_pki" ]; then

0 commit comments

Comments
 (0)