Add possibility to configure umask

This commit is contained in:
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ 2021-10-12 10:15:27 +02:00
parent 243bb708b0
commit 1f7ef3663f
No known key found for this signature in database
GPG Key ID: 92E472A6DA5D50AB
2 changed files with 3 additions and 1 deletions

View File

@ -120,5 +120,7 @@ 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 defúlts
**NOTE:** the global options need to be provided before the actual commands.

View File

@ -2392,7 +2392,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