-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
9 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
10 changes: 9 additions & 1 deletion
10
influxdb/rootfs/etc/cont-init.d/21-auth.sh → influxdb/rootfs/etc/cont-init.d/influxdb.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
#!/usr/bin/with-contenv bashio | ||
# ============================================================================== | ||
# Community Hass.io Add-ons: InfluxDB | ||
# Configures authentication | ||
# Configures InfluxDB | ||
# ============================================================================== | ||
|
||
# Configures authentication | ||
if bashio::config.true 'auth'; then | ||
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 | ||
bashio::log.info "Reporting of usage stats to InfluxData is disabled." | ||
fi |
File renamed without changes.
File renamed without changes.
File renamed without changes.