Change grep regex in the docker's entrypoint to find env variables starting with PGADMIN_CONFIG_ only.

This commit is contained in:
sprayzcs
2023-09-04 09:36:15 +02:00
committed by GitHub
parent 0b7eafaca0
commit 5cf9dea9a8

View File

@@ -31,7 +31,7 @@ EOF
# This is a bit kludgy, but necessary as the container uses BusyBox/ash as
# it's shell and not bash which would allow a much cleaner implementation
for var in $(env | grep PGADMIN_CONFIG_ | cut -d "=" -f 1); do
for var in $(env | grep "^PGADMIN_CONFIG_" | cut -d "=" -f 1); do
# shellcheck disable=SC2086
# shellcheck disable=SC2046
echo ${var#PGADMIN_CONFIG_} = $(eval "echo \$$var") >> /pgadmin4/config_distro.py