mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
nixos/foundationdb: chmod 0770 for logs/data files
Slight oversight: this allows members of the FoundationDB group to read logs. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
c55b9236f0
commit
427f1e58a4
@ -389,7 +389,7 @@ in
|
|||||||
chown -R ${cfg.user}:${cfg.group} ${cfg.pidfile}
|
chown -R ${cfg.user}:${cfg.group} ${cfg.pidfile}
|
||||||
|
|
||||||
for x in "${cfg.logDir}" "${cfg.dataDir}"; do
|
for x in "${cfg.logDir}" "${cfg.dataDir}"; do
|
||||||
[ ! -d "$x" ] && mkdir -m 0700 -vp "$x";
|
[ ! -d "$x" ] && mkdir -m 0770 -vp "$x";
|
||||||
chown -R ${cfg.user}:${cfg.group} "$x";
|
chown -R ${cfg.user}:${cfg.group} "$x";
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user