Merge branch '8080-arvbox' closes #8080
[arvados.git] / lib / arvbox / docker / service / postgres / run
1 #!/bin/bash
2
3 flock /var/lib/arvados/createusers.lock /usr/local/lib/arvbox/createusers.sh
4
5 . /usr/local/lib/arvbox/common.sh
6
7 chown -R $PGUSER:$PGGROUP /var/lib/postgresql
8 chown -R $PGUSER:$PGGROUP /var/run/postgresql
9 chown -R $PGUSER:$PGGROUP /etc/postgresql
10 chown -R $PGUSER:$PGGROUP /etc/ssl/private
11
12 exec chpst -u $PGUSER:$PGGROUP $0-service