Skip to content

Commit 796f3f1

Browse files
committed
"!...=" != "!=" ❗
1 parent 5950846 commit 796f3f1

7 files changed

+7
-7
lines changed

8.4/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

9.0/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

9.1/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

9.2/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

9.3/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

9.4/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ "$1" = 'postgres' ]; then
3131
: ${POSTGRES_USER:=postgres}
3232
: ${POSTGRES_DB:=$POSTGRES_USER}
3333

34-
if [ ! "$POSTGRES_DB" = 'postgres' ]; then
34+
if [ "$POSTGRES_DB" != 'postgres' ]; then
3535
gosu postgres postgres --single -jE <<-EOSQL
3636
CREATE DATABASE "$POSTGRES_DB" ;
3737
EOSQL

0 commit comments

Comments
 (0)