1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-11-19 00:22:57 +03:00

Merge pull request #52 from md5/chown-run-postgresql

Ensure /run/postgresql has correct ownership and permissions
This commit is contained in:
Tianon Gravi
2015-03-11 12:35:42 -06:00
7 changed files with 21 additions and 0 deletions

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb

View File

@@ -4,6 +4,9 @@ set -e
if [ "$1" = 'postgres' ]; then
chown -R postgres "$PGDATA"
chmod g+s /run/postgresql
chown -R postgres:postgres /run/postgresql
if [ -z "$(ls -A "$PGDATA")" ]; then
gosu postgres initdb