mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Fixes only if ClamAV is enabled
This commit is contained in:
parent
b42d607ad1
commit
a7d96a479b
1 changed files with 3 additions and 2 deletions
|
@ -141,8 +141,9 @@ if [ "$check_cron" -eq 0 ]; then
|
||||||
crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab -
|
crontab -l | { cat; echo "10 2 * * 6 sudo find /home/*/tmp/ -type f -mtime +5 -exec rm {} \;"; } | crontab -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unit_files="$(systemctl list-unit-files | grep clamav-daemon)"
|
if [ $(systemctl list-unit-files | grep clamav-daemon | grep -c "disabled") -eq 0 ]; then
|
||||||
if [[ ! "$unit_files" =~ "disabled" ]]; then
|
# Fixes only if ClamAV is enabled
|
||||||
|
|
||||||
# make sure clamav-daemon.service has mkdir fix
|
# make sure clamav-daemon.service has mkdir fix
|
||||||
if [ -f "/lib/systemd/system/clamav-daemon.service" ]; then
|
if [ -f "/lib/systemd/system/clamav-daemon.service" ]; then
|
||||||
check_grep=$(grep -c 'mkdir' /lib/systemd/system/clamav-daemon.service)
|
check_grep=$(grep -c 'mkdir' /lib/systemd/system/clamav-daemon.service)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue