Skip to content

Commit 559ff64

Browse files
committed
quote variables when using
1 parent 57ca678 commit 559ff64

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pkg/docker/entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ if [[ ! -f /var/lib/pgadmin/pgadmin4.db && $external_config_db_exists == 'False'
146146
# Copy the pgpass file passed using secrets
147147
if [[ -f $PGPASS_FILE ]]; then
148148
if [[ $PGADMIN_CONFIG_SERVER_MODE == 'False' ]]; then
149-
cp ${PGPASS_FILE} /var/lib/pgadmin/.pgpass
149+
cp "${PGPASS_FILE}" /var/lib/pgadmin/.pgpass
150150
chmod 600 /var/lib/pgadmin/.pgpass
151151
else
152152
PGADMIN_USER_CONFIG_DIR=$(echo "${PGADMIN_DEFAULT_EMAIL}" | sed 's/@/_/g')
153-
mkdir -p /var/lib/pgadmin/storage/${PGADMIN_USER_CONFIG_DIR}
154-
cp ${PGPASS_FILE} /var/lib/pgadmin/storage/${PGADMIN_USER_CONFIG_DIR}/.pgpass
155-
chmod 600 /var/lib/pgadmin/storage/${PGADMIN_USER_CONFIG_DIR}/.pgpass
153+
mkdir -p /var/lib/pgadmin/storage/"${PGADMIN_USER_CONFIG_DIR}"
154+
cp "${PGPASS_FILE}" /var/lib/pgadmin/storage/"${PGADMIN_USER_CONFIG_DIR}"/.pgpass
155+
chmod 600 /var/lib/pgadmin/storage/"${PGADMIN_USER_CONFIG_DIR}"/.pgpass
156156
fi
157157
fi
158158
# If already initialised and PGADMIN_REPLACE_SERVERS_ON_STARTUP is set to true, then load the server json file.

0 commit comments

Comments
 (0)