From: Heiko Z. <smi...@us...> - 2004-07-02 01:41:23
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8907/scripts/scripts Modified Files: Tag: rel-1-2-patches clamav Log Message: - clamav prints success if database was updated or is up-to-date (Heiko / Roland Pabel) - cosmetic fixes of boot message (Heiko / Roland Pabel) Index: clamav =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/scripts/clamav,v retrieving revision 1.5 retrieving revision 1.5.4.1 diff -u -d -r1.5 -r1.5.4.1 --- clamav 2 Oct 2003 00:19:47 -0000 1.5 +++ clamav 2 Jul 2004 01:41:14 -0000 1.5.4.1 @@ -49,8 +49,14 @@ if [ "$UPDATE_CLAMAV" = "yes" ]; then test -n "$UPDATE_CLAMAV_USER" && PARAM="--proxy-user $UPDATE_CLAMAV_USER" test -n "$UPDATE_CLAMAV_PROXY" && PARAM="$PARAM --http-proxy $UPDATE_CLAMAV_PROXY" - echo "Updating ClamAV Virus signatures: " + echo -n "Updating ClamAV Virus signatures: " /usr/bin/freshclam --quiet -l /var/log/clam-update.log $PARAM + # exit codes 0 & 1 indicate success + if [ $? -lt 2 ]; then + print_status success + else + print_status failure + fi fi echo -n "Starting $NAME: " loadproc $DAEMON $PARAMETER |