Don't set perm on data dir recursively
This commit is contained in:
parent
86fcd0c100
commit
d164485094
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ set_listen_addresses() {
|
||||||
|
|
||||||
if [ "$1" = 'postgres' ]; then
|
if [ "$1" = 'postgres' ]; then
|
||||||
mkdir -p "$PGDATA"
|
mkdir -p "$PGDATA"
|
||||||
chmod -R 700 "$PGDATA"
|
chmod 700 "$PGDATA"
|
||||||
chown -R postgres "$PGDATA"
|
chown -R postgres "$PGDATA"
|
||||||
|
|
||||||
chmod g+s /run/postgresql
|
chmod g+s /run/postgresql
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue