wok-stable rev 7963
Made sure clamav user id is 64. Also made sure clamav group was added if not found in /etc/group.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 16 13:53:36 2011 +0000 (2011-01-16) |
parents | 613cf74b3878 |
children | 4ce3a132d552 |
files | clamav/receipt |
line diff
1.1 --- a/clamav/receipt Sun Jan 16 13:38:29 2011 +0000 1.2 +++ b/clamav/receipt Sun Jan 16 13:53:36 2011 +0000 1.3 @@ -16,7 +16,7 @@ 1.4 compile_rules() 1.5 { 1.6 # Have to create clamav user/group to be able to compile 1.7 - adduser clamav -s /bin/false -H -D 1.8 + adduser -s /bin/false -H -D clamav 1.9 1.10 cd $src 1.11 ./configure \ 1.12 @@ -69,7 +69,14 @@ 1.13 # adduser clamav if needed 1.14 if ! grep -q clamav $1/etc/passwd; then 1.15 echo -n "Adding user clamav..." 1.16 - chroot $1/ adduser clamav -s /bin/false -H -D 1.17 + chroot $1/ adduser -s /bin/false -H -D -u 64 clamav 1.18 + status 1.19 + fi 1.20 + 1.21 + # addgroup clamav if needed 1.22 + if ! grep -q clamav $1/etc/group; then 1.23 + echo -n "Adding group clamav..." 1.24 + chroot $1/ addgroup -g 64 clamav 1.25 status 1.26 fi 1.27