Skip to content

Commit

Permalink
Migrate add-on to new Home Assistant configuration mapping (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Nov 10, 2023
1 parent 0895c64 commit 625ac57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion grafana/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ arch:
- amd64
- armv7
map:
- config
- homeassistant_config
- ssl
options:
plugins: []
Expand Down
5 changes: 5 additions & 0 deletions grafana/rootfs/etc/s6-overlay/s6-rc.d/init-grafana/run
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ readonly CONFIG="/etc/grafana/grafana.ini"
declare ingress_entry
declare log_level

# Symlink the new style config directory to the old one. People might have
# configurations for Grafana that access the database via the old path.
ln -s "/homeassistant" "/config" \
|| bashio::log.warning "Failed linking Home Assistant configuration alias"

# Configures Grafana with the add-on log level
log_level="Info"
if bashio::config.exists 'log_level'; then
Expand Down

0 comments on commit 625ac57

Please sign in to comment.