From 3859c4bbcf462a442c5b26be03079a9f65329b02 Mon Sep 17 00:00:00 2001 From: itepechi <72330683+itepechi@users.noreply.github.com> Date: Sun, 6 Aug 2023 04:39:35 +0900 Subject: [PATCH] Run automatic migration on startup command only --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 7c0fe8353..fac2e5484 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -8,7 +8,7 @@ if [ "$1" = 'pleroma' ] || [ "$1" = 'pleroma_ctl' ]; then done fi -if [ "$1" = 'pleroma' ]; then +if [ "$1" = 'pleroma' ] && [ "$2" = 'start' ]; then echo "-- Running migrations..." pleroma_ctl migrate