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

Merge pull request #110 from JacobHayes/set-PGDATA-permissions

Set PGDATA permissions to 700
This commit is contained in:
Tianon Gravi
2016-01-05 15:16:08 -08:00
7 changed files with 7 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql

View File

@@ -8,6 +8,7 @@ set_listen_addresses() {
if [ "$1" = 'postgres' ]; then if [ "$1" = 'postgres' ]; then
mkdir -p "$PGDATA" mkdir -p "$PGDATA"
chmod 700 "$PGDATA"
chown -R postgres "$PGDATA" chown -R postgres "$PGDATA"
chmod g+s /run/postgresql chmod g+s /run/postgresql