Skip to content

Commit

Permalink
don't wait for virus scan to finish (#2536)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Jan 15, 2024
1 parent c3f1e0d commit 3149aad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3149aad

Please sign in to comment.