diff --git a/motech/install.sh b/motech/install.sh index 1c5bca9..38685a5 100755 --- a/motech/install.sh +++ b/motech/install.sh @@ -26,8 +26,7 @@ rc-update -u # Populate database and create admin account service motech start echo `date` '- Waiting for database to be populated. This should take about a minute.' -MOTECH_IP=$(awk '/ motech/ {print $1}' /etc/hosts) -until curl -s "http://${MOTECH_IP}:8080/module/server/startup/" | grep -q adminLogin; do +until curl -s "http://motech:8080/module/server/startup/" | grep -q adminLogin; do sleep 1 done export MOTECH_ADMIN_USER="admin"