harbor/make/photon/standalone-db-migrator/entrypoint.sh

7 lines
148 B
Bash
Raw Normal View History

#!/bin/bash
set -e
[ $EXTERNAL_DB -eq 1 ] || pg_ctl start -w -t 60 -D ${PGDATA}
/harbor/migrate
[ $EXTERNAL_DB -eq 1 ] || pg_ctl stop -D ${PGDATA}