From b7282a575cb5e38029d782c0fbd9d7e641a3d203 Mon Sep 17 00:00:00 2001 From: Pascal Christoph Date: Tue, 21 Nov 2023 09:58:55 +0100 Subject: [PATCH] Fix logic Complemnets d0c0005b4530b2c2c79eb6525bebf5c479950cfb. --- web/monit_restart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/monit_restart.sh b/web/monit_restart.sh index 7a7303874..8468cf7df 100755 --- a/web/monit_restart.sh +++ b/web/monit_restart.sh @@ -38,7 +38,7 @@ case $ACTION in rm target/universal/stage/RUNNING_PID fi JAVA_OPTS="$JAVA_OPTS -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -DpreferIPv4Stack" sbt clean "start $PORT" & > monit_start.log - if [ -n $DO_ETL_UPDATE -a $(tail -n100 logs/etl.log |grep -c "Finishing indexing of ES index 'resources-alma-fix'") -gt 0 ]; then + if [ -n $DO_ETL_UPDATE -a $(tail -n100 logs/etl.log |grep -c "Finishing indexing of ES index 'resources-alma-fix'") -eq 0 ]; then echo "Automatical updates-ETL triggered and last entries were not ok, thus starting ETL. Sleep 100s before starting ETL ..." >> monit_start.log sleep 100 curl http://localhost:$PORT/resources/webhook/update-alma?token=$ETL_TOKEN