From 7784559b85141dce5d80ebed6b50b96b8f65a86d Mon Sep 17 00:00:00 2001 From: Scott Weldon Date: Mon, 25 Dec 2023 10:29:35 -0800 Subject: [PATCH] Run migrations when installing This throws errors, but they can be ignored. --- root/entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/root/entrypoint.sh b/root/entrypoint.sh index 9aaf34a..0702fe8 100755 --- a/root/entrypoint.sh +++ b/root/entrypoint.sh @@ -82,6 +82,7 @@ provisioner() { -c "SELECT 1 FROM pg_catalog.pg_tables WHERE schemaname = 'public';")" if [ "$TABLES_EXIST" == "" ]; then echo "Installing Wallabag ..." + exec su -c "bin/console doctrine:migrations:migrate --env=prod --no-interaction" -s /bin/sh nobody install_wallabag else echo "WARN: Postgres database is already configured. Remove the environment variable with root password."