mirror of
https://github.com/wallabag/docker.git
synced 2026-02-23 18:27:33 +01:00
Run migrations when installing
This throws errors, but they can be ignored.
This commit is contained in:
@ -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."
|
||||
|
||||
Reference in New Issue
Block a user