|
|
# PKGINST parameter provided by installation servicewhile read src dest do user=`basename $dest` || exit 2
(crontab -l $user | sed -e "/#$PKGINST$/d" > /tmp/$$crontab) || exit 2
sed -e "s/$/#$PKGINST/" $src >> /tmp/$$crontab || exit 2
crontab $user < /tmp/$$crontab || exit 2 rm -f /tmp/$$crontab done exit 0