diff --git a/Dockerfiles/agent/alpine/docker-entrypoint.sh b/Dockerfiles/agent/alpine/docker-entrypoint.sh index 3fb8126d2..dbdf4dea0 100755 --- a/Dockerfiles/agent/alpine/docker-entrypoint.sh +++ b/Dockerfiles/agent/alpine/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent/centos/docker-entrypoint.sh b/Dockerfiles/agent/centos/docker-entrypoint.sh index 3fb8126d2..dbdf4dea0 100755 --- a/Dockerfiles/agent/centos/docker-entrypoint.sh +++ b/Dockerfiles/agent/centos/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent/ol/docker-entrypoint.sh b/Dockerfiles/agent/ol/docker-entrypoint.sh index b6eb8af83..f7cf7caaf 100755 --- a/Dockerfiles/agent/ol/docker-entrypoint.sh +++ b/Dockerfiles/agent/ol/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent/rhel/docker-entrypoint.sh b/Dockerfiles/agent/rhel/docker-entrypoint.sh index 3fb8126d2..dbdf4dea0 100755 --- a/Dockerfiles/agent/rhel/docker-entrypoint.sh +++ b/Dockerfiles/agent/rhel/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent/ubuntu/docker-entrypoint.sh b/Dockerfiles/agent/ubuntu/docker-entrypoint.sh index 3fb8126d2..dbdf4dea0 100755 --- a/Dockerfiles/agent/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/agent/ubuntu/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent2/alpine/docker-entrypoint.sh b/Dockerfiles/agent2/alpine/docker-entrypoint.sh index bd2f7ee7b..f34e2f524 100755 --- a/Dockerfiles/agent2/alpine/docker-entrypoint.sh +++ b/Dockerfiles/agent2/alpine/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent2/centos/docker-entrypoint.sh b/Dockerfiles/agent2/centos/docker-entrypoint.sh index bd2f7ee7b..f34e2f524 100755 --- a/Dockerfiles/agent2/centos/docker-entrypoint.sh +++ b/Dockerfiles/agent2/centos/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent2/ol/docker-entrypoint.sh b/Dockerfiles/agent2/ol/docker-entrypoint.sh index f097ef737..ab2584984 100755 --- a/Dockerfiles/agent2/ol/docker-entrypoint.sh +++ b/Dockerfiles/agent2/ol/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent2/rhel/docker-entrypoint.sh b/Dockerfiles/agent2/rhel/docker-entrypoint.sh index bd2f7ee7b..f34e2f524 100755 --- a/Dockerfiles/agent2/rhel/docker-entrypoint.sh +++ b/Dockerfiles/agent2/rhel/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/agent2/ubuntu/docker-entrypoint.sh b/Dockerfiles/agent2/ubuntu/docker-entrypoint.sh index bd2f7ee7b..f34e2f524 100755 --- a/Dockerfiles/agent2/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/agent2/ubuntu/docker-entrypoint.sh @@ -82,7 +82,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-mysql/alpine/docker-entrypoint.sh b/Dockerfiles/proxy-mysql/alpine/docker-entrypoint.sh index 6964cb8c7..267ecdd80 100755 --- a/Dockerfiles/proxy-mysql/alpine/docker-entrypoint.sh +++ b/Dockerfiles/proxy-mysql/alpine/docker-entrypoint.sh @@ -113,7 +113,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-mysql/centos/docker-entrypoint.sh b/Dockerfiles/proxy-mysql/centos/docker-entrypoint.sh index 727359d63..4ffee4e76 100755 --- a/Dockerfiles/proxy-mysql/centos/docker-entrypoint.sh +++ b/Dockerfiles/proxy-mysql/centos/docker-entrypoint.sh @@ -113,7 +113,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-mysql/ol/docker-entrypoint.sh b/Dockerfiles/proxy-mysql/ol/docker-entrypoint.sh index 727359d63..4ffee4e76 100755 --- a/Dockerfiles/proxy-mysql/ol/docker-entrypoint.sh +++ b/Dockerfiles/proxy-mysql/ol/docker-entrypoint.sh @@ -113,7 +113,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-mysql/rhel/docker-entrypoint.sh b/Dockerfiles/proxy-mysql/rhel/docker-entrypoint.sh index 727359d63..4ffee4e76 100755 --- a/Dockerfiles/proxy-mysql/rhel/docker-entrypoint.sh +++ b/Dockerfiles/proxy-mysql/rhel/docker-entrypoint.sh @@ -113,7 +113,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-mysql/ubuntu/docker-entrypoint.sh b/Dockerfiles/proxy-mysql/ubuntu/docker-entrypoint.sh index 727359d63..4ffee4e76 100755 --- a/Dockerfiles/proxy-mysql/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/proxy-mysql/ubuntu/docker-entrypoint.sh @@ -113,7 +113,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-sqlite3/alpine/docker-entrypoint.sh b/Dockerfiles/proxy-sqlite3/alpine/docker-entrypoint.sh index 2e9bb8457..dbf5ef76f 100755 --- a/Dockerfiles/proxy-sqlite3/alpine/docker-entrypoint.sh +++ b/Dockerfiles/proxy-sqlite3/alpine/docker-entrypoint.sh @@ -79,7 +79,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-sqlite3/centos/docker-entrypoint.sh b/Dockerfiles/proxy-sqlite3/centos/docker-entrypoint.sh index 2e9bb8457..dbf5ef76f 100755 --- a/Dockerfiles/proxy-sqlite3/centos/docker-entrypoint.sh +++ b/Dockerfiles/proxy-sqlite3/centos/docker-entrypoint.sh @@ -79,7 +79,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-sqlite3/ol/docker-entrypoint.sh b/Dockerfiles/proxy-sqlite3/ol/docker-entrypoint.sh index 2e9bb8457..dbf5ef76f 100755 --- a/Dockerfiles/proxy-sqlite3/ol/docker-entrypoint.sh +++ b/Dockerfiles/proxy-sqlite3/ol/docker-entrypoint.sh @@ -79,7 +79,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-sqlite3/rhel/docker-entrypoint.sh b/Dockerfiles/proxy-sqlite3/rhel/docker-entrypoint.sh index 2e9bb8457..dbf5ef76f 100755 --- a/Dockerfiles/proxy-sqlite3/rhel/docker-entrypoint.sh +++ b/Dockerfiles/proxy-sqlite3/rhel/docker-entrypoint.sh @@ -79,7 +79,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/proxy-sqlite3/ubuntu/docker-entrypoint.sh b/Dockerfiles/proxy-sqlite3/ubuntu/docker-entrypoint.sh index 2e9bb8457..dbf5ef76f 100755 --- a/Dockerfiles/proxy-sqlite3/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/proxy-sqlite3/ubuntu/docker-entrypoint.sh @@ -79,7 +79,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh b/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh index 48f789977..f1789967e 100755 --- a/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-mysql/centos/docker-entrypoint.sh b/Dockerfiles/server-mysql/centos/docker-entrypoint.sh index 6d4e57f12..64d896ad8 100755 --- a/Dockerfiles/server-mysql/centos/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/centos/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-mysql/ol/docker-entrypoint.sh b/Dockerfiles/server-mysql/ol/docker-entrypoint.sh index 6d4e57f12..64d896ad8 100755 --- a/Dockerfiles/server-mysql/ol/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/ol/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh b/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh index 6d4e57f12..64d896ad8 100755 --- a/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh b/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh index 6d4e57f12..64d896ad8 100755 --- a/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh b/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh index 610c7f3e3..30144ed94 100755 --- a/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh b/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh index 610c7f3e3..30144ed94 100755 --- a/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh b/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh index 610c7f3e3..30144ed94 100755 --- a/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path" diff --git a/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh b/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh index 610c7f3e3..30144ed94 100755 --- a/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh @@ -110,7 +110,7 @@ update_config_var() { var_value=$(escape_spec_char "$var_value") var_name=$(escape_spec_char "$var_name") - if [ "$(grep -E "^$var_name=$var_value" $config_path)" ]; then + if [ "$(grep -E "^$var_name=$var_value$" $config_path)" ]; then echo "exists" elif [ "$(grep -E "^$var_name=" $config_path)" ] && [ "$is_multiple" != "true" ]; then sed -i -e "/^$var_name=/s/=.*/=$var_value/" "$config_path"