GRMLBASE/98-clean-chroot: recursively remove /var/lib/clamav/clamav-*.
authorMichael Prokop <mika@grml.org>
Tue, 28 Jun 2011 09:50:43 +0000 (11:50 +0200)
committerMichael Prokop <mika@grml.org>
Tue, 28 Jun 2011 09:50:43 +0000 (11:50 +0200)
etc/grml/fai/config/scripts/GRMLBASE/98-clean-chroot

index 59d0a00..923277f 100755 (executable)
@@ -142,7 +142,7 @@ if ! [ -d $target/var/lib/clamav/ ] ; then
   echo "Warning: clamav[-freshclam] not installed"
 else
   echo "Cleaning /var/lib/clamav/"
-  rm -f $target/var/lib/clamav/clamav-*
+  $ROOTCMD rm -rf /var/lib/clamav/clamav-*
 
   echo "Setting up daily.cvd and main.cvd symlinks"
   if [ -f $target/var/lib/clamav/daily.cvd ] ; then