Skip to content

Commit

Permalink
fcron: do not chmod at all
Browse files Browse the repository at this point in the history
fcron does handle permissions on its own correctly

fixes #24814

(cherry picked from commit 5ca7e8a)
  • Loading branch information
Mic92 committed Apr 13, 2017
1 parent 7ad99e9 commit 5acb454
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions nixos/modules/services/scheduling/fcron.nix
Expand Up @@ -143,10 +143,12 @@ in
};

preStart = ''
${pkgs.coreutils}/bin/mkdir -m 0770 -p /var/spool/fcron
${pkgs.coreutils}/bin/chown -R fcron:fcron /var/spool/fcron
install \
--mode 0770 \
--owner fcron \
--group fcron \
--directory /var/spool/fcron
# load system crontab file
set -x
#${pkgs.fcron}/bin/fcrontab -u systab ${pkgs.writeText "systab" cfg.systab}
'';

Expand Down

0 comments on commit 5acb454

Please sign in to comment.