You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-26 23:21:10 +03:00
"!...=" != "!=" ❗
This commit is contained in:
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
|
||||
: ${POSTGRES_USER:=postgres}
|
||||
: ${POSTGRES_DB:=$POSTGRES_USER}
|
||||
|
||||
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
|
||||
if [ "$POSTGRES_DB" != 'postgres' ]; then
|
||||
gosu postgres postgres --single -jE <<-EOSQL
|
||||
CREATE DATABASE "$POSTGRES_DB" ;
|
||||
EOSQL
|
||||
|
Reference in New Issue
Block a user