Skip to content
Snippets Groups Projects
Commit a4ba2a73 authored by Brandon Pfeifer's avatar Brandon Pfeifer
Browse files

fix(influxdb): only substitute environment variables when running 'influxdb3'

parent 9b7081d7
No related merge requests found
...@@ -2,8 +2,11 @@ ...@@ -2,8 +2,11 @@
set -euo pipefail set -euo pipefail
args=("${@}") args=("${@}")
if [[ "${1}" == influxdb3 ]] ; then
for i in "${!args[@]}"; do for i in "${!args[@]}"; do
args[${i}]="$(echo "${args[${i}]}" | envsubst)" args[i]="$(envsubst <<<"${args[i]}")"
done done
fi
exec "${args[@]}" exec "${args[@]}"
...@@ -2,8 +2,11 @@ ...@@ -2,8 +2,11 @@
set -euo pipefail set -euo pipefail
args=("${@}") args=("${@}")
if [[ "${1}" == influxdb3 ]] ; then
for i in "${!args[@]}"; do for i in "${!args[@]}"; do
args[${i}]="$(echo "${args[${i}]}" | envsubst)" args[i]="$(envsubst <<<"${args[i]}")"
done done
fi
exec "${args[@]}" exec "${args[@]}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment