Skip to content

Commit

Permalink
🔨 Simplifies add-on code logic
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Apr 13, 2019
1 parent 6967680 commit f4f0ad4
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
9 changes: 0 additions & 9 deletions influxdb/rootfs/etc/cont-init.d/22-reporting.sh

This file was deleted.

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.

0 comments on commit f4f0ad4

Please sign in to comment.