don't wait for virus scan to finish (#2536)
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
Родитель
c3f1e0db0e
Коммит
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
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче