Merge branch 'ccin2p3-feature/custom-umask'
Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
commit
7f6d5e65a8
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user