Skip to content

Commit a48eb05

Browse files
committed
Merge branch 'add-option-no-lockfile' of ssh://github.com/TinCanTech/easy-rsa into TinCanTech-add-option-no-lockfile
Signed-off-by: Richard T Bonhomme <[email protected]>
2 parents 73e8d6d + 9f01eb1 commit a48eb05

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Easy-RSA 3 ChangeLog
22

33
3.2.4 (TBD)
44

5+
* New global option: --no-lockfile = env-var: $EASYRSA_NO_LOCKFILE (46c8647) (#1364)
56
* default_overview(): Add peer-fingerprint mode PKI identification (c9a0152) (#1363)
67
* help: Add in use algorithm and key-size/curve to top level status (10778cc) (#1363)
78
* help: Move 'utils' to command list and detailed help (e965234) (#1363)

easyrsa3/easyrsa

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Global options:
4343
--force-safe-ssl: Always generate a safe SSL config file
4444
(Default: Generate Safe SSL config once per instance)
4545

46+
--no-lockfile : Disable lock-file (Useful for read-only PKI)
4647
--tmp-dir=DIR : Declare the temporary directory
4748
(Default temporary directory is the EasyRSA PKI directory)
4849
--keep-tmp=NAME : Keep the original temporary session by name: NAME
@@ -5785,7 +5786,7 @@ verify_working_env() {
57855786
verbose "verify_working_env: BEGIN"
57865787

57875788
# Oppertunist PKI lock-file
5788-
request_lock_file
5789+
[ "$EASYRSA_NO_LOCKFILE" ] || request_lock_file
57895790

57905791
# For commands which 'require a PKI' and PKI exists
57915792
if [ "$require_pki" ]; then
@@ -6703,6 +6704,10 @@ while :; do
67036704
--pki-dir|--pki)
67046705
export EASYRSA_PKI="$val"
67056706
;;
6707+
--no-lockfile)
6708+
empty_ok=1
6709+
export EASYRSA_NO_LOCKFILE=1
6710+
;;
67066711
--tmp-dir)
67076712
export EASYRSA_TEMP_DIR="$val"
67086713
;;

0 commit comments

Comments
 (0)