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