summaryrefslogtreecommitdiff
path: root/community/fcron/fcron.install
blob: a1223138e2ccc0f3b11b26e8cfc2c1d49ad9881d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pre_install() {
   # Create necessary user and group
   getent group cron || /usr/sbin/groupadd -g 22 cron
   getent passwd cron || /usr/sbin/useradd -d / -g cron -u 22 -s /bin/false cron
}

post_install() {
    cat << "EOF"

    Use fcrontab -u systab -e to edit the system crontab and change the defaults.

    By default fcron uses vi as an editor for your crontab. If you want to use another editor
    you can define it in /etc/fcron/fcron.conf. If for some odd reason you want to uninstall
    vi and recompile fcron, you need to edit the PKGBUILD and pass
    --with-editor=<pathtoyoureditor> to configure.

    By default fcron uses /usr/sbin/sendmail (as in the packages providing smtp-sever, such as 
    exim and postfix) to send mails about your cron jobs. If there is no /usr/sbin/sendmail you 
    won't get mails. If you want to use a MTA with a different path you can define it 
    /etc/fcron/fcron.conf.

EOF
}