vp-build/srcpkgs/clamav/INSTALL

21 lines
426 B
Plaintext

# INSTALL
case "$ACTION" in
post)
# Only if not updating
if [ "$UPDATE" != "yes" ]; then
# Create the database directory
mkdir -p var/lib/_clamav
# The clamav user owns it
chown -R _clamav:_clamav var/lib/_clamav
# Let group members write to it
chmod g+w var/lib/_clamav
else
if [ -d "var/lib/clamav" ]; then
mv var/lib/clamav var/lib/_clamav
chown -R _clamav:_clamav var/lib/_clamav
fi
fi
;;
esac