mirror of
https://github.com/yandex/pgmigrate.git
synced 2024-09-11 04:15:28 +03:00
13 lines
344 B
Bash
Executable File
13 lines
344 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
chown -R postgres:postgres /dist
|
|
mkdir -p /var/log/pogsgresql
|
|
chown postgres:postgres /var/log/pogsgresql
|
|
sudo -u postgres /usr/lib/postgresql/${PG_MAJOR}/bin/pg_ctl -D \
|
|
/etc/postgresql/${PG_MAJOR}/main -l \
|
|
/var/log/pogsgresql/postgresql-${PG_MAJOR}-main.log start
|
|
cd /dist
|
|
sudo -u postgres -i tox -c /dist/tox.ini
|