From 7c5648112afcdbce9c06e1d9534db8fcb28e76ca Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 9 Sep 2013 16:24:41 +0000 Subject: Send mail from rcynic-cron to root, not rcynic. Closes #610. svn path=/trunk/; revision=5488 --- buildtools/debian-skeleton/rpki-rp.postinst | 2 +- buildtools/freebsd-skeleton/rpki-rp/pkg-install | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'buildtools') diff --git a/buildtools/debian-skeleton/rpki-rp.postinst b/buildtools/debian-skeleton/rpki-rp.postinst index ef45c861..9726785d 100644 --- a/buildtools/debian-skeleton/rpki-rp.postinst +++ b/buildtools/debian-skeleton/rpki-rp.postinst @@ -44,7 +44,7 @@ setup_rcynic_cron() { if test "X`crontab -l -u rcynic 2>/dev/null`" = "X" then awk -v t=`hexdump -n 2 -e '"%u\n"' /dev/urandom` ' - BEGIN {printf "%u * * * *\texec /usr/bin/rcynic-cron\n", t % 60}' | + BEGIN {printf "MAILTO=root\n%u * * * *\texec /usr/bin/rcynic-cron\n", t % 60}' | crontab -u rcynic - fi } diff --git a/buildtools/freebsd-skeleton/rpki-rp/pkg-install b/buildtools/freebsd-skeleton/rpki-rp/pkg-install index 3a8d960e..8c552016 100644 --- a/buildtools/freebsd-skeleton/rpki-rp/pkg-install +++ b/buildtools/freebsd-skeleton/rpki-rp/pkg-install @@ -84,7 +84,7 @@ POST-INSTALL) else echo "Setting up rcynic's crontab to run rcynic-cron script" /usr/bin/awk -v t=`/usr/bin/hexdump -n 2 -e '"%u\n"' /dev/random` ' - BEGIN {printf "%u * * * *\texec /usr/local/bin/rcynic-cron\n", t % 60}' | + BEGIN {printf "MAILTO=root\n%u * * * *\texec /usr/local/bin/rcynic-cron\n", t % 60}' | /usr/bin/crontab -u rcynic - fi echo "Setting up rpki-rtr listener under inetd" -- cgit v1.2.3