From bff8fd2919dd117d60e4042192fc05f3b08d9d96 Mon Sep 17 00:00:00 2001 From: 12ww1160 Date: Tue, 2 Dec 2025 16:47:50 +0100 Subject: [PATCH] OP#176 fix quotes --- README.md | 2 ++ start.sh | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 20eb3cc..914910e 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,5 @@ However we did a few changes to adjust the following: * the entire build flow is now based on the Dockerfile, no external make step. This allows using a Jenkins CI/CD pipeline for both build and placing the image in a package registry, so the image can be used in Kubernetes via CI/CD. All manual steps are removed. * we moved away from CentOS 7 as base to Alpine, which creates a much smaller image footprint while providing the very same functionality. + +## Usage diff --git a/start.sh b/start.sh index 7b8e758..c27a0ba 100755 --- a/start.sh +++ b/start.sh @@ -14,12 +14,12 @@ function shutdown() { pkill -SIGINT postgresql-prometheus-adapter } -adapter_send_timeout=${adapter_send_timeout:-'30s'} -web_listen_address="${web_listen_address:-':9201'}" -web_telemetry_path="${web_telemetry_path:-'/metrics'}" -log_level="${log_level:-'info'}" -log_format="${log_format:-'logfmt'}" -pg_partition="${pg_partition:-'hourly'}" +adapter_send_timeout=$(echo "${adapter_send_timeout:-'30s'}" | tr -d "'") +web_listen_address=$(echo "${web_listen_address:-':9201'}" | tr -d "'") +web_telemetry_path=$(echo "${web_telemetry_path:-'/metrics'}" | tr -d "'") +log_level=$(echo "${log_level:-'info'}" | tr -d "'") +log_format=$(echo "${log_format:-'logfmt'}" | tr -d "'") +pg_partition=$(echo "${pg_partition:-'hourly'}" | tr -d "'") pg_commit_secs=${pg_commit_secs:-30} pg_commit_rows=${pg_commit_rows:-20000} pg_threads="${pg_threads:-1}"