Skip to content

Commit

Permalink
Fix symlink .env.local for docker env
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Jul 10, 2023
1 parent 08fca86 commit 1b7e53b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b7e53b

Please sign in to comment.