Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate add-on to new Home Assistant configuration mapping #371

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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