clamav: fix database directory
This commit is contained in:
parent
4b945b586d
commit
fd08e4cd02
|
@ -4,11 +4,16 @@ post)
|
||||||
# Only if not updating
|
# Only if not updating
|
||||||
if [ "$UPDATE" != "yes" ]; then
|
if [ "$UPDATE" != "yes" ]; then
|
||||||
# Create the database directory
|
# Create the database directory
|
||||||
mkdir -p var/lib/clamav
|
mkdir -p var/lib/_clamav
|
||||||
# The clamav user owns it
|
# The clamav user owns it
|
||||||
chown -R _clamav:_clamav var/lib/clamav
|
chown -R _clamav:_clamav var/lib/_clamav
|
||||||
# Let group members write to it
|
# Let group members write to it
|
||||||
chmod g+w var/lib/clamav
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -4,7 +4,7 @@ pre)
|
||||||
# Only if not updating
|
# Only if not updating
|
||||||
if [ "$UPDATE" != "yes" ]; then
|
if [ "$UPDATE" != "yes" ]; then
|
||||||
# Remove the clamav database directory and contents
|
# Remove the clamav database directory and contents
|
||||||
rm -rf var/lib/clamav
|
rm -rf var/lib/_clamav
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'clamav'
|
# Template file for 'clamav'
|
||||||
pkgname=clamav
|
pkgname=clamav
|
||||||
version=0.100.1
|
version=0.100.1
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
# XXX: system llvm is too new (< 3.7 required)
|
# XXX: system llvm is too new (< 3.7 required)
|
||||||
# Shipped llvm does not build with gcc6
|
# Shipped llvm does not build with gcc6
|
||||||
|
|
Loading…
Reference in New Issue