Files
server/etc/cron.daily/drweb-update
2026-01-08 18:34:49 +01:00

15 lines
237 B
Bash
Executable File

#!/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