Skip to content

Commit

Permalink
Ensure AdGuard can do migration from config without schema version (#189
Browse files Browse the repository at this point in the history
)
  • Loading branch information
frenck authored May 20, 2021
1 parent 086674f commit cc2ca40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions adguard/rootfs/etc/cont-init.d/adguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ if bashio::var.has_value "${schema_version+}"; then
bashio::warning
bashio::exit.ok
fi
else
# No idea what the schema is, might be an old config?
# Ensure dummy value exists so AdGuard doesn't kill itself during migration
yq write --inplace "${CONFIG}" dns.bind_host "127.0.0.1"
fi

# Collect IP addresses
Expand Down

0 comments on commit cc2ca40

Please sign in to comment.