Skip to content

Commit

Permalink
Add support for fallback to the old path
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck committed Nov 10, 2023
1 parent c054202 commit c44b8ad
Showing 1 changed file with 5 additions and 0 deletions.
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 c44b8ad

Please sign in to comment.