#! /bin/sh

# Run pkgsync, answering no to all conffile questions, logging to
# /var/log/pkgsync.log. If there is an error, we cat the entire file to
# stdout, so cron will complain to the admin. We don't rotate
# pkgsync.log (yet?) but it will be overwritten every night.

export PATH=/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin

( /usr/bin/yes n | /usr/sbin/pkgsync >/var/log/pkgsync.log 2>&1 ) || /bin/cat /var/log/pkgsync.log
