From 086674f79f64440fed82454dffd29646d33c0d4e Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Thu, 20 May 2021 12:21:48 +0200 Subject: [PATCH] Ensure AdGuard can do migration from < 7 config schemas (#187) --- adguard/rootfs/etc/cont-init.d/adguard.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adguard/rootfs/etc/cont-init.d/adguard.sh b/adguard/rootfs/etc/cont-init.d/adguard.sh index e8c348d..fbd6932 100644 --- a/adguard/rootfs/etc/cont-init.d/adguard.sh +++ b/adguard/rootfs/etc/cont-init.d/adguard.sh @@ -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"