Skip to content
Permalink
Browse files

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>
  • Loading branch information...
thoughtpolice committed May 14, 2019
1 parent c55b923 commit 427f1e58a47509406ef23c58dcd607aa0d8f11cd
Showing with 1 addition and 1 deletion.
  1. +1 −1 nixos/modules/services/databases/foundationdb.nix
@@ -389,7 +389,7 @@ in
chown -R ${cfg.user}:${cfg.group} ${cfg.pidfile}
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";
done

0 comments on commit 427f1e5

Please sign in to comment.
You can’t perform that action at this time.