Skip to content

Commit

Permalink
Ensure AdGuard can do migration from < 7 config schemas (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored May 20, 2021
1 parent 7ae378f commit 086674f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adguard/rootfs/etc/cont-init.d/adguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if bashio::var.has_value "${schema_version+}"; then

# Warn if this is an upgrade from below schema version 7, skip further process
if (( schema_version < 7 )); then
# Ensure dummy value exists so AdGuard doesn't kill itself during migration
yq write --inplace "${CONFIG}" dns.bind_host "127.0.0.1"
bashio::warning
bashio::warning "AdGuard Home needs to update its configuration schema"
bashio::warning "you might need to restart he add-on once more to complete"
Expand Down

0 comments on commit 086674f

Please sign in to comment.