From 46126071228884e0bec806c413148c72923decf1 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 9 Dec 2021 12:11:34 +0530 Subject: [PATCH] Set default APPSMITH_GIT_ROOT value in Docker (#9666) --- deploy/docker/scripts/run-with-env.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy/docker/scripts/run-with-env.sh b/deploy/docker/scripts/run-with-env.sh index 9e8402b12d..90a86ab86d 100755 --- a/deploy/docker/scripts/run-with-env.sh +++ b/deploy/docker/scripts/run-with-env.sh @@ -30,4 +30,9 @@ if [[ -z "${APPSMITH_RECAPTCHA_SITE_KEY}" ]] || [[ -z "${APPSMITH_RECAPTCHA_SECR unset APPSMITH_RECAPTCHA_ENABLED fi +if [[ -z "${APPSMITH_GIT_ROOT:-}" ]]; then + export APPSMITH_GIT_ROOT=/appsmith-stacks/git-storage +fi +mkdir -pv "$APPSMITH_GIT_ROOT" + exec "$@"