PKGBUILDs/community/fcron/fcron.install
2009-10-09 21:15:33 -05:00

26 lines
571 B
Text

pre_install() {
# Create necessary user and group
/usr/sbin/groupadd -g 22 cron && \
/usr/sbin/useradd -d / -g cron -u 22 -s /bin/false cron
}
post_install() {
cat << "EOF"
IMPORTANT NOTE:
fcron is meant as a dcron replacement with more flexibility and
therefore has the same default crontab as dcron. Do not run them
simultaneously.
fcron is especially useful if your machine doesn't run 24/7, as it
is set to run "missed" cronjobs when it is started.
Use fcrontab -u systab -e to edit the system crontab and change the defaults.
EOF
}
op=$1
shift
$op $*