Skip to content

Commit

Permalink
Fix error that occurs if variable is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Feb 27, 2024
1 parent 94a8382 commit 0503c21
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 @@ -42,7 +42,7 @@ case $ACTION in
sbt clean
sbt --java-home $JAVA_HOME stage
./target/universal/stage/bin/lobid-resources-web -Dhttp.port=$PORT -no-version-check > monit_start.log &
if [ -n $DO_ETL_UPDATE -a $(tail -n100 logs/etl.log |grep -c "Finishing indexing of ES index 'resources-alma-fix'") -eq 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
Expand Down

0 comments on commit 0503c21

Please sign in to comment.