Merge branch 'ccin2p3-feature/custom-umask'

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-03-22 13:00:39 +00:00
commit 7f6d5e65a8
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246
2 changed files with 4 additions and 1 deletions

View File

@ -120,5 +120,8 @@ possible terse description is shown below:
password using any openssl password options like pass:1234 or env:var
* `EASYRSA_PASSOUT` (CLI: `--passout`) - allows to specify a source for
password using any openssl password options like pass:1234 or env:var
* `EASYRSA_UMASK` - safe umask to use for file creation. Defaults to `077`
* `EASYRSA_NO_UMASK` - disable safe umask. Files will be created using the
system's default
**NOTE:** the global options need to be provided before the actual commands.

View File

@ -2488,7 +2488,7 @@ NL='
'
# Be secure with a restrictive umask
[ -z "$EASYRSA_NO_UMASK" ] && umask 077
[ -z "$EASYRSA_NO_UMASK" ] && umask ${EASYRSA_UMASK:-077}
# Parse options
while :; do