# HG changeset patch # User Paul Issott # Date 1224260704 0 # Node ID 80f608f4b58f11ccf8c5a97544941b9ca48d4a8c # Parent 270174cf554e7c87979d21c6fd4f3214010ea927 clamav: adduser before chown diff -r 270174cf554e -r 80f608f4b58f clamav/receipt --- a/clamav/receipt Fri Oct 17 13:33:56 2008 +0000 +++ b/clamav/receipt Fri Oct 17 16:25:04 2008 +0000 @@ -60,15 +60,15 @@ mv temp.file clamd.conf status - # Enable daily.cvd updates - chown -R clamav:clamav /usr/share/clamav - # adduser clamav if needed if ! grep -q clamav $1/etc/passwd; then echo -n "Adding user clamav..." chroot $1/ adduser clamav -s /bin/false -H -D -S status fi + + # Enable daily.cvd updates + chown -R clamav:clamav /usr/share/clamav } # Del user clamav when pkg is removed.