Skip to content

Commit

Permalink
Check that .env do not exists before generating one from template wod…
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed May 25, 2023
1 parent 3c5f33d commit 7a299e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init/10_laravel_php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ if [[ -n "${DEBUG}" ]]; then
set -x
fi

gotpl "/etc/gotpl/.env.tmpl" > "${APP_ROOT}/.env"
if [[ ! -f "${APP_ROOT}/.env" ]]; then
gotpl "/etc/gotpl/.env.tmpl" > "${APP_ROOT}/.env"
fi

0 comments on commit 7a299e0

Please sign in to comment.