From 9a14a3f3da74cc4ddda7cf295597014837d05002 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 21 Mar 2024 13:54:11 +0100 Subject: [PATCH] idhub entrypoint: refactor check_app_is_there --- docker/idhub.entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/idhub.entrypoint.sh b/docker/idhub.entrypoint.sh index 21b601a..3a22aef 100755 --- a/docker/idhub.entrypoint.sh +++ b/docker/idhub.entrypoint.sh @@ -103,9 +103,17 @@ main() { idhub_dir='/opt/idhub' cd "${idhub_dir}" +check_app_is_there() { if [ ! -f "./manage.py" ]; then usage fi +} + +main() { + idhub_dir='/opt/idhub' + cd "${idhub_dir}" + + check_app_is_there deployment_strategy