From f9e9a97b6ec8588c838998e8a33ea458b8be8b75 Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Mon, 19 Jul 2021 14:50:36 -0600 Subject: [PATCH] - copy env.dist if .env doesn't exist --- bin/run-docker.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bin/run-docker.sh b/bin/run-docker.sh index d21e8d1..6c0a8f6 100644 --- a/bin/run-docker.sh +++ b/bin/run-docker.sh @@ -21,7 +21,17 @@ if [ -z "$1" ]; then print_usage_instructions fi -BUILD_NO_CACHE= +TAG=${TAG-latest} +WP_VERSION=${WP_VERSION-5.6} +PHP_VERSION=${PHP_VERSION-7.4} + +BUILD_NO_CACHE=${BUILD_NO_CACHE-} + +if [[ ! -f ".env" ]]; then + echo "No .env file was detected. .env.dist has been copied to .env" + echo "Open the .env file and enter values to match your local environment" + cp .env.dist .env +fi subcommand=$1; shift case "$subcommand" in