From 89a430fe5ab72f18a5241a840583c2e8d421535e Mon Sep 17 00:00:00 2001 From: Disassembler Date: Sun, 4 Nov 2018 19:50:23 +0100 Subject: [PATCH] Update motech install script to use local hostname --- motech/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"