You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-11-17 13:02:40 +03:00
Merge pull request #110 from JacobHayes/set-PGDATA-permissions
Set PGDATA permissions to 700
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user