1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/cron/cron.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4 # Copyright (C) 1998 - 2003 ROCK Linux Project
6 # This Copyright note is generated by scripts/Create-CopyPatch,
7 # more information can be found in the files COPYING and README.
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License version 2.
11 # --- T2-COPYRIGHT-NOTE-END ---
13 crondiff=`match_source_file -p diff`
14 [ -z "$crondiff" ] || var_insert patchfiles ' ' "$crondiff"
17 cp $confdir/crontab $root/etc/
18 chmod 600 $root/etc/crontab
19 cp $confdir/cron.run.sh $root/usr/sbin/cron.run
20 chmod +x $root/usr/sbin/cron.run
22 # prepare crontabs dir for normal users (crontab -e)
23 mkdir -p $root/var/spool/cron/crontabs
24 chmod a+rx $root/var/spool/cron
25 chmod 1730 $root/var/spool/cron/crontabs
26 chgrp 53 $root/$prefix/bin/crontab $root/var/spool/cron/crontabs
27 chmod u-s,g+s $root/$prefix/bin/crontab
30 hook_add postmake 5 'cron_inst'