Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
Complemnets d0c0005.
  • Loading branch information
dr0i committed Nov 21, 2023
1 parent 55af810 commit f8dbf60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/monit_restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 web/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'") -gt 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
Expand Down

0 comments on commit f8dbf60

Please sign in to comment.