Skip to content

Commit

Permalink
Fix application of the “reporting” setting (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
QRPp authored Jan 7, 2024
1 parent f43ed03 commit 3868096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions influxdb/rootfs/etc/cont-init.d/influxdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

# Configures authentication
if bashio::config.true 'auth'; then
sed -i 's/auth-enabled=.*/auth-enabled=true/' /etc/influxdb/influxdb.conf
sed -i 's/\<auth-enabled\>.*/auth-enabled=true/' /etc/influxdb/influxdb.conf
else
bashio::log.warning "InfluxDB authentication protection is disabled!"
bashio::log.warning "This is NOT recommended!!!"
fi

# Configures usage reporting to InfluxDB
if bashio::config.false 'reporting'; then
sed -i 's/reporting-disabled=.*/reporting-disabled=true/' /etc/influxdb/influxdb.conf
sed -i 's/\<reporting-disabled\>.*/reporting-disabled=true/' /etc/influxdb/influxdb.conf
bashio::log.info "Reporting of usage stats to InfluxData is disabled."
fi

0 comments on commit 3868096

Please sign in to comment.