From 3ece0ebbbe3ba6bc92825f190b4aa8e88e1b8377 Mon Sep 17 00:00:00 2001
From: anima
Date: Sat, 1 Feb 2025 20:28:45 +0100
Subject: [PATCH] fix var name for influxdb host
---
init.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init.sh b/init.sh
index 64a326c..e6ab954 100644
--- a/init.sh
+++ b/init.sh
@@ -63,7 +63,7 @@ fi
if [ ! -z "$ICINGA2_INFLUXDB_HOST" ]; then
echo set new influxdb host
- sed -i "s|\(//\)*host = \".*\"|host = \"$ICINGA2_INFLUXDB_PASS\"|g" $ICINGA2_FILE_INFLUXDB_CONF
+ sed -i "s|\(//\)*host = \".*\"|host = \"$ICINGA2_INFLUXDB_HOST\"|g" $ICINGA2_FILE_INFLUXDB_CONF
fi
if [ ! -z "$ICINGA2_INFLUXDB_PORT" ]; then