mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
* Allow users to create crontabs by default.
svn path=/nixos/trunk/; revision=14861
This commit is contained in:
parent
46d69d9170
commit
80f0683a77
1 changed files with 10 additions and 0 deletions
|
@ -88,6 +88,16 @@ in
|
|||
# Needed to interpret times in the local timezone.
|
||||
env TZ=${config.time.timeZone}
|
||||
|
||||
start script
|
||||
mkdir -m 710 -p /var/cron
|
||||
|
||||
# By default, allow all users to create a crontab. This
|
||||
# is denoted by the existence of an empty cron.deny file.
|
||||
if ! test -e /var/cron/cron.allow -o -e /var/cron/cron.deny; then
|
||||
touch /var/cron/cron.deny
|
||||
fi
|
||||
end script
|
||||
|
||||
respawn ${pkgs.cron}/sbin/cron -n
|
||||
'';
|
||||
}];
|
||||
|
|
Loading…
Reference in a new issue