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