There was an error while loading. Please reload this page.
2 parents 90a822e + 0cc6110 commit d6e7657Copy full SHA for d6e7657
influxdb/3.6-enterprise/entrypoint.sh
@@ -1,6 +1,15 @@
1
#!/bin/bash
2
set -euo pipefail
3
4
+# Unset environment variables; splitting on whitespace
5
+# Usage: INFLUXDB3_UNSET_VARS="HOST FOO BAR"
6
+if [[ -n "${INFLUXDB3_UNSET_VARS:-}" ]]; then
7
+ read -ra vars <<< "${INFLUXDB3_UNSET_VARS}"
8
+ for var in "${vars[@]}"; do
9
+ unset "$var" || { echo "Error: Failed to unset variable '$var' (may be readonly)"; exit 1; }
10
+ done
11
+fi
12
+
13
args=("${@}")
14
15
if [[ "${args[0]:-}" == serve ]] ; then
0 commit comments