From 83cdf46746546b356d74a3b603d13b34988054c0 Mon Sep 17 00:00:00 2001 From: Flo Bieringer <wertfrei@icloud.com> Date: Mon, 19 Apr 2021 09:56:47 +0200 Subject: [PATCH] Prevent container from restarting when automigrate fails --- docker-entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 47f3c8b..6cd598a 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -44,7 +44,9 @@ fi if [ ! -z $AUTO_MIGRATE ]; then echo "Migrate Instance" - php "$STUDIP/cli/migrate.php" + + # If migrate fails start instance anyway + php "$STUDIP/cli/migrate.php" || true echo "Migration finished" fi -- GitLab