nixos/mautrix-telegram: loosen umask to keep config.json
writable
This is needed because `mautrix-telegram --generate-registration` appears to need write-access to `config.json` as well. Closes #135884
This commit is contained in:
parent
d945e55ffc
commit
bae65a3c06
@ -128,7 +128,7 @@ in {
|
||||
# https://github.com/tulir/mautrix-telegram/issues/584
|
||||
[ -f ${settingsFile} ] && rm -f ${settingsFile}
|
||||
old_umask=$(umask)
|
||||
umask 0277
|
||||
umask 0177
|
||||
${pkgs.envsubst}/bin/envsubst \
|
||||
-o ${settingsFile} \
|
||||
-i ${settingsFileUnsubstituted}
|
||||
|
Loading…
Reference in New Issue
Block a user