[Script] Update AdGuard Home

So why is it that when I choose to keep settings on the glinet GUI and perform an upgrade of the firmware does the build report back to the original adguard home? Is your script making a brand new directory and changing paths to the files? You would think if I have said keep settings then the starting build number your script reports the next time I run it (from fresh upgrade) would be whatever I upgraded prior and not the original build.

Because I notice that my original adguard home settings are always still preserved so I'm assuming glinet are also keeping the adguard home directory preserved and not deleting, as part of their "keep settings"

I'm just trying to wrap my head around it that's all lol.

Edit:
Keeping settings" will not keep installed software, that's the issue but it is by design.

^ I get that now. So is your script making a brand new adguard home directory or just overwriting the old adguard home directory?

No, no brand-new files.

But since OpenWrt uses /overlay it will just overwrite all files which are not located inside the /etc/sysupgrade.conf by the files contained in the firmware images itself.

But Keep settings only applies to config files, not to binaries.

Understood. Sorry for all the questions but as you have probably gathered from my previous posts / threads, I like to understand whats going on / how it works.

Thanks again :+1:

Thank you for this script. It's really great and makes the whole procedure much easier. I have a question though, is there a way to install the beta version of adguard using this script?

No, beta isn't supported yet.

Would this just work on the Velica B2200?

Try it and report it back :wink: But I doubt it because the OpenWrt version on the B2200 is really, really old (19.x if I remember correctly)

15.05 is the version on the Velica.

That's even older. So no, I doubt it will work.

Not sure if this is due to your script or GL-iNet default settings, but I started to see this warning since 0.107.54:

Thu Nov 28 14:43:29 2024 user.notice AdGuardHome[9978]: 2024/11/28 14:43:29.050351 [info] permcheck: SECURITY WARNING: directory "/etc/AdGuardHome" has unexpected permissions 0755; want 0700
Thu Nov 28 14:43:29 2024 user.notice AdGuardHome[9978]: 2024/11/28 14:43:29.050413 [info] permcheck: SECURITY WARNING: directory "/etc/AdGuardHome/data" has unexpected permissions 0755; want 0700
Thu Nov 28 14:43:29 2024 user.notice AdGuardHome[9978]: 2024/11/28 14:43:29.050450 [info] permcheck: SECURITY WARNING: directory "/etc/AdGuardHome/data/filters" has unexpected permissions 0755; want 0700

It is error for permission files in your router.
I can't remember command chmod 777 in shh.
Hope @admon will fix script

Did you modify any AdGuard stuff besides my script?
Since my script does not modify permissions it must be something you did.

Nope... I never changed anything.
I just updated my ADH today to version 0.107.54 and I started to see this warning.
I never noticed this warning on previous updates.
Maybe preivous versions didn't run these permissions checks.

Those permissions are useless anyway since everything runs as root.
Just ignore it or set the correct permissions using chmod

I'm just reverting this, to make a clean install of 4.7-op24 and I noticed this line doesn't exist on sysupgrade.conf

Did you choose to make the install permanent?

Yes, since the beginning, months ago...

It was fully reversed (even not finding that line). I'm now on 4.7-op24 with the original ADH 0.107.52

I'll take a look if someone else has trouble with that as well.
Thanks for the report, however!

Not an update, but the script is already compatible with Slate 7 (BE-3600)

1 Like

Hello is the script still working to sft 1200? I did the upgrade, rebootes the router now i canno acess adh page and all the internet traffic os blocked, but when i stop adguard internet comes up again. Already did a factory reset and tryied again but same result, after the update ADH blocks internet traffic and i cannot acess the config page