From 01ecde15925a27f8ea1341b052e1804ecc8801f4 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Mon, 15 Jan 2024 15:32:29 +0000 Subject: [PATCH] allow skipping one-time setup tasks --- .../root/docker/entrypoint.d/11-first-time-setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/shared/root/docker/entrypoint.d/11-first-time-setup.sh b/docker/shared/root/docker/entrypoint.d/11-first-time-setup.sh index f9fd6a61b..6778bd90e 100755 --- a/docker/shared/root/docker/entrypoint.d/11-first-time-setup.sh +++ b/docker/shared/root/docker/entrypoint.d/11-first-time-setup.sh @@ -3,6 +3,16 @@ source /docker/helpers.sh entrypoint-set-script-name "$0" +# Allow automatic applying of outstanding/new migrations on startup +: ${DOCKER_RUN_ONE_TIME_SETUP_TASKS:=1} + +if is-false "${DOCKER_RUN_ONE_TIME_SETUP_TASKS}"; then + log-warning "Automatic run of the 'One-time setup tasks' is disabled." + log-warning "Please set [DOCKER_RUN_ONE_TIME_SETUP_TASKS=1] in your [.env] file to enable this." + + exit 0 +fi + load-config-files await-database-ready