X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage3%2Fpkg%2Ffcron;h=1397f71e49a0833090d1cee094110ee6f0098d57;hb=a41c6c99c8f31750b64d0a810cab1ac4b5df4642;hp=517298a616b1b837850d46a4308d9923204c80e6;hpb=3dae4c554ec18f465eb6ee5e6efdbdbe8557e13c;p=hvlinux.git diff --git a/stage3/pkg/fcron b/stage3/pkg/fcron index 517298a..1397f71 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 + install -v -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