#!/bin/sh

update_scr="/opt/drweb/update.pl"

outfile=`mktemp /tmp/drweb-update.XXXXXX`
[ -x "${update_scr}" ] || exit 0

trap 'rm -f $outfile;' TERM INT EXIT

"${update_scr}" >$outfile 2>&1
rc=$?

[ $rc -eq 0 ] || cat $outfile
exit $rc
