Merge branch '8784-dir-listings'
[arvados.git] / tools / arvbox / lib / arvbox / docker / service / postgres / run
1 #!/bin/bash
2 # Copyright (C) The Arvados Authors. All rights reserved.
3 #
4 # SPDX-License-Identifier: AGPL-3.0
5
6 flock /var/lib/arvados/createusers.lock /usr/local/lib/arvbox/createusers.sh
7
8 . /usr/local/lib/arvbox/common.sh
9
10 chown -R $PGUSER:$PGGROUP /var/lib/postgresql
11 chown -R $PGUSER:$PGGROUP /var/run/postgresql
12 chown -R $PGUSER:$PGGROUP /etc/postgresql
13 chown -R $PGUSER:$PGGROUP /etc/ssl/private
14
15 exec chpst -u $PGUSER:$PGGROUP $0-service