Skip to content

Commit d68f305

Browse files
committed
user password quotes
1 parent c6aabbe commit d68f305

11 files changed

+22
-22
lines changed

9.2/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.2/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.3/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.3/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.4/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.4/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.5/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.5/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.6/alpine/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

9.6/docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ "$1" = 'postgres' ]; then
112112
psql+=( --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" )
113113

114114
# If you want to create more than one user, please use that variable
115-
# Variable example: POSTGRES_USER="user1:user1pass|user2:user2pass|user3:user3password"
115+
# Variable example: POSTGRES_USERS="user1:user1pass|user2:user2pass|user3:user3password"
116116
if [ "$POSTGRES_USERS" ]; then
117117
USERS_ARR=$(echo $POSTGRES_USERS | tr "|" "\n")
118118
for USER in $USERS_ARR
@@ -125,7 +125,7 @@ if [ "$1" = 'postgres' ]; then
125125
op='CREATE'
126126
fi
127127
"${psql[@]}" --username postgres <<-EOSQL
128-
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD $USER_PASSWORD ;
128+
$op USER "$USER_NAME" WITH SUPERUSER PASSWORD "$USER_PASSWORD" ;
129129
EOSQL
130130
done
131131
fi

0 commit comments

Comments
 (0)