mirror of
https://github.com/wallabag/docker.git
synced 2026-02-23 10:17:34 +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';")"
|
-c "SELECT 1 FROM pg_catalog.pg_tables WHERE schemaname = 'public';")"
|
||||||
if [ "$TABLES_EXIST" == "" ]; then
|
if [ "$TABLES_EXIST" == "" ]; then
|
||||||
echo "Installing Wallabag ..."
|
echo "Installing Wallabag ..."
|
||||||
|
exec su -c "bin/console doctrine:migrations:migrate --env=prod --no-interaction" -s /bin/sh nobody
|
||||||
install_wallabag
|
install_wallabag
|
||||||
else
|
else
|
||||||
echo "WARN: Postgres database is already configured. Remove the environment variable with root password."
|
echo "WARN: Postgres database is already configured. Remove the environment variable with root password."
|
||||||
|
|||||||
Reference in New Issue
Block a user