Skip to content

Commit

Permalink
Use new login --retry API
Browse files Browse the repository at this point in the history
  • Loading branch information
sbesson committed May 5, 2021
1 parent a5bb188 commit 80aeae4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions wait_for_login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,5 @@ OMERO_PASS=omero
OMERO=/opt/omero/server/OMERO.server/bin/omero

# Wait up to 2 mins
i=0
while ! docker-compose exec -T omeroserver $OMERO login -C -s localhost -u "$OMERO_USER" -q -w "$OMERO_PASS"; do
i=$(($i+1))
if [ $i -ge 24 ]; then
echo "$(date) - OMERO.server still not reachable, giving up"
exit 1
fi
echo "$(date) - waiting for OMERO.server..."
sleep 5
done
docker-compose exec -T omeroserver $OMERO login -C -s localhost -u "$OMERO_USER" -q -w "$OMERO_PASS" --retry 120
echo "OMERO.server connection established"

0 comments on commit 80aeae4

Please sign in to comment.