generated from coop-cloud/example
Don't run postgres migrate on a new DB
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e487a36bb5
commit
68f23084aa
@ -11,6 +11,7 @@ if [ -e $MIGRATION_MARKER ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f $PGDATA/PG_VERSION ]; then
|
||||||
DATA_VERSION=$(cat $PGDATA/PG_VERSION)
|
DATA_VERSION=$(cat $PGDATA/PG_VERSION)
|
||||||
|
|
||||||
if [ -n "$DATA_VERSION" -a "$PG_MAJOR" != "$DATA_VERSION" ]; then
|
if [ -n "$DATA_VERSION" -a "$PG_MAJOR" != "$DATA_VERSION" ]; then
|
||||||
@ -38,5 +39,6 @@ if [ -n "$DATA_VERSION" -a "$PG_MAJOR" != "$DATA_VERSION" ]; then
|
|||||||
rm $MIGRATION_MARKER
|
rm $MIGRATION_MARKER
|
||||||
echo "migration complete"
|
echo "migration complete"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
/usr/local/bin/docker-entrypoint.sh postgres
|
/usr/local/bin/docker-entrypoint.sh postgres
|
||||||
|
Loading…
x
Reference in New Issue
Block a user