X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage3%2Fpkg%2Ffcron;h=4b8c7685d5578bb4c79c385f1dc48b460047882a;hb=8a3ca89281fa60a712e637b2a99dec05322fbe6e;hp=517298a616b1b837850d46a4308d9923204c80e6;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/fcron b/stage3/pkg/fcron index 517298a..4b8c768 100644 --- a/stage3/pkg/fcron +++ b/stage3/pkg/fcron @@ -57,21 +57,23 @@ editor = /usr/bin/nano EOF chmod 640 /etc/fcron/fcron.conf - cat > /etc/fcron/fcrontab << "EOF" -# &options min hrs day-of-month month day-of-week command -# Run rotatelogs every day at 00:05 -#&mail(false) 05 00 * * * /usr/local/bin/rotatelogs -EOF - chmod 640 /etc/fcron/fcrontab - chown -R root.fcron /etc/fcron - install -d /var/spool/fcron chown fcron.fcron /var/spool/fcron cat > /etc/fcron/configure << "EOF" -#!/bin/sh +#!/bin/bash + +# Create empty file (or erase existing file) +> /etc/fcron/fcron.tab + +for f in /etc/fcron/fcron.d/*; do + cat $f >> /etc/fcron/fcron.tab +done + +chown -R root:fcron /etc/fcron +chmod 640 /etc/fcron/fcron.tab -fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcrontab +fcrontab -c /etc/fcron/fcron.conf /etc/fcron/fcron.tab exit $? EOF