mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 08:14:10 +00:00
allow skipping one-time setup tasks
This commit is contained in:
parent
9814a39fd8
commit
01ecde1592
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue