From c618bd86d9a027e7973b870de0b03711f6afa840 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Fri, 12 Jun 2020 23:12:52 +0530 Subject: [PATCH] feat: wait for connection before creating site --- build/common/worker/docker-entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/common/worker/docker-entrypoint.sh b/build/common/worker/docker-entrypoint.sh index d07e3cb6..d6194c17 100755 --- a/build/common/worker/docker-entrypoint.sh +++ b/build/common/worker/docker-entrypoint.sh @@ -125,7 +125,8 @@ elif [ "$1" = 'schedule' ]; then fi elif [ "$1" = 'new' ]; then - + checkConfigExists + checkConnection if [[ -z "$RUN_AS_ROOT" ]]; then su frappe -c ". /home/frappe/frappe-bench/env/bin/activate \ && python /home/frappe/frappe-bench/commands/new.py"