From 1b7e53bd37fade29f9d5f2bce81c9000d3384cea Mon Sep 17 00:00:00 2001 From: Uladzimir Tsykun Date: Mon, 10 Jul 2023 13:41:07 +0200 Subject: [PATCH] Fix symlink .env.local for docker env --- docker/docker-entrypoint.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index ebca4220..2d8fe324 100644 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -5,11 +5,6 @@ if [[ ! -z "$WAIT_FOR_HOST" ]]; then wait-for-it.sh $WAIT_FOR_HOST fi -if [[ "$SKIP_INIT" == "1" ]]; then - echo "Skip init application" - exec "$@" -fi - [ ! -d /data/redis ] && mkdir -p /data/redis [ ! -d /data/composer ] && mkdir /data/composer [ ! -d /data/zipball ] && mkdir /data/zipball @@ -46,6 +41,12 @@ done cp -r /var/www/.ssh/* /root/.ssh && chmod -R 600 /root/.ssh/* +if [[ "$SKIP_INIT" == "1" ]]; then + echo "Skip init application" + exec "$@" + exit 0; +fi + # Additional script handler if [ -f /var/tmp/data/handler.sh ]; then bash /var/tmp/data/handler.sh