1
0
mirror of https://github.com/docker-library/postgres.git synced 2025-07-26 23:21:10 +03:00

Fix "-s" usage

This commit is contained in:
Tianon Gravi
2015-07-21 16:12:07 -07:00
parent 28b8bd7456
commit 0ced079cd6
7 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf

View File

@ -9,7 +9,7 @@ if [ "$1" = 'postgres' ]; then
chown -R postgres:postgres /run/postgresql
# look specifically for PG_VERSION, as it is expected in the DB dir
if [ -s "$PGDATA/PG_VERSION" ]; then
if [ ! -s "$PGDATA/PG_VERSION" ]; then
gosu postgres initdb
sed -ri "s/^#(listen_addresses\s*=\s*)\S+/\1'*'/" "$PGDATA"/postgresql.conf