Skip to content

Commit

Permalink
Run migrations when installing
Browse files Browse the repository at this point in the history
This throws errors, but they can be ignored.
  • Loading branch information
501st-alpha1 committed Dec 31, 2023
1 parent 4d52431 commit 7784559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions root/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 7784559

Please sign in to comment.