Explicitly set PGDATA permissions to 700

This commit is contained in:
Jacob Hayes 2015-12-22 15:50:44 -06:00
parent d74474439c
commit 86fcd0c100
7 changed files with 7 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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