mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-14 04:52:59 +02:00
clamav: Move database directory to /var partition
The clamav database is quite large and occupies valuable space on the root partition that on older systems is only 2GB large. This change moves the virus definition database to the /var partition which is larger and supposed to hold data like this anyway. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -12,12 +12,12 @@ case "$1" in
|
||||
|
||||
COUNTER=0
|
||||
while [ "$COUNTER" -lt "61" ]; do
|
||||
[ -e "/usr/share/clamav/main.cvd" ] && \
|
||||
[ -e "/usr/share/clamav/daily.cvd" ] || \
|
||||
[ -e "/usr/share/clamav/daily.cld" ] && \
|
||||
[ -e "/var/lib/clamav/main.cvd" ] && \
|
||||
[ -e "/var/lib/clamav/daily.cvd" ] || \
|
||||
[ -e "/var/lib/clamav/daily.cld" ] && \
|
||||
break
|
||||
if [ "$COUNTER" -lt "1" ]; then
|
||||
boot_mesg -n "Download db "
|
||||
boot_mesg -n "Downloading database"
|
||||
else
|
||||
boot_mesg -n "."
|
||||
fi
|
||||
@@ -46,7 +46,7 @@ case "$1" in
|
||||
stop)
|
||||
boot_mesg "Stopping Clamav Definition Updater..."
|
||||
killproc /usr/bin/freshclam
|
||||
rm -rf /usr/share/clamav/*.tmp
|
||||
rm -rf /var/lib/clamav/*.tmp
|
||||
|
||||
boot_mesg "Stopping Clamav Daemon..."
|
||||
killproc /usr/sbin/clamd
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
############################################################################
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
mv /usr/share/clamav /usr/share/clamav-update
|
||||
mv /var/lib/clamav /var/lib/clamav-update
|
||||
./uninstall.sh
|
||||
mv /usr/share/clamav-update /usr/share/clamav
|
||||
mv /var/lib/clamav-update /var/lib/clamav
|
||||
./install.sh
|
||||
|
||||
Reference in New Issue
Block a user