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