mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
don't wait for virus scan to finish (#2536)
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
c3f1e0db0e
commit
3149aad664
11
lib.sh
11
lib.sh
@ -461,7 +461,16 @@ done
|
||||
check_running_cronjobs() {
|
||||
while [ -n "$(pgrep -f nextcloud/cron.php)" ]
|
||||
do
|
||||
countdown "Waiting for the Nextcloud cronjob to finish..." "30"
|
||||
# Check if virus scan is running, could take ages for it to finish...
|
||||
if ! pgrep -f clamd
|
||||
then
|
||||
# If not running, then keep waiting
|
||||
countdown "Waiting for the Nextcloud cronjob to finish..." "30"
|
||||
else
|
||||
# If virus scan is running, then wait a bit longer, and kill it to release cron.php
|
||||
countdown "Waiting for the Nextcloud cronjob and virusscan to finish..." "120"
|
||||
pkill -f clamd
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user