File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -5789,10 +5789,8 @@ change these values.
5789
5789
${unexpected_error}"
5790
5790
} # => validate_default_vars()
5791
5791
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() {
5796
5794
# Create lock-file
5797
5795
create_lock_file_error=
5798
5796
if [ -d "${EASYRSA_PKI}" ]; then
@@ -5838,12 +5836,20 @@ lock-file removed - Please try running the easyrsa command again."
5838
5836
else
5839
5837
verbose "verify_working_env: lock-file not required."
5840
5838
fi
5839
+ } # => request_lock_file()
5840
+
5841
+ # Verify working environment
5842
+ verify_working_env() {
5843
+ verbose "verify_working_env: BEGIN"
5841
5844
5842
5845
# For commands which 'require a PKI' and PKI exists
5843
5846
if [ "$require_pki" ]; then
5844
5847
# Verify PKI is initialised
5845
5848
verify_pki_init
5846
5849
5850
+ # Lock the PKI
5851
+ request_lock_file
5852
+
5847
5853
# Temp dir session and throw-away temp-file
5848
5854
secure_session
5849
5855
easyrsa_mktemp test_temp_file
You can’t perform that action at this time.
0 commit comments