X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F92-update-freshclam;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F92-update-freshclam;h=0000000000000000000000000000000000000000;hb=019fbefe5b29bb4e95808163f0cd645640cad30c;hp=afaadc4b072ea93bf94965608e30ff00be5044fe;hpb=9a1ee76bc3fa423968d666e36422000e4ee979d6;p=grml-live-grml.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam b/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam deleted file mode 100755 index afaadc4..0000000 --- a/etc/grml/fai/config/scripts/GRMLBASE/92-update-freshclam +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -# Filename: ${GRML_FAI_CONFIG}/config/scripts/GRMLBASE/92-update-freshclam -# Purpose: update freshclam database -# Authors: (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -if ifclass NO_ONLINE ; then - echo "Ignoring script 91-update-pciids as NO_ONLINE is set." - exit 0 -fi - -set -u - -bailout() { - if [ "${1:-}" = "124" ] ; then - echo "Warning: freshclam returned with exit code 124." >&2 - - # be verbose in logs - echo "Warning: freshclam returned with exit code 124." - echo "-> This might happen when the incremental daily update failed to run, and" - echo " retrieving the full daily.cvd failed as well." - echo " This is known to be a problem in automated builds causing build errors." - echo " Therefore we are ignoring this issue." - echo " If a fresh clamav database is important for you, execute freshclam in the chroot." - - exit 0 - fi - - exit "${1:-0}" -} - -[ -x $target/usr/bin/timeout ] && TIMEOUT="10" || TIMEOUT="" - -if ! [ -x $target/usr/bin/freshclam ] ; then - echo "freshclam not installed" - exit 0 -fi - -echo "Updating clamav database via running freshclam" -if [ -n "$TIMEOUT" ] ; then - $ROOTCMD timeout $TIMEOUT /usr/bin/freshclam - bailout $? -else - $ROOTCMD /usr/bin/freshclam - bailout $? -fi - -## END OF FILE ################################################################# -# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2