File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments