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