#!/bin/bash -e

until [ -f "${INSTANCE_DIR}/.initialized" ] ; do
    echo "Waiting until instance ${INSTANCE_ID} is initialized"
    sleep 3
    # TODO: timeout?
done
