-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flag for updating from the command line #4223
Comments
How exactly does this work now? I use the Edit: Edit 2: |
Same question. I am trying to see if I can integrate this into a nightly CRON job by calling |
That was exactly my plan but I think it's just an argument when launching AGH and it will automatically update AGH when it finds an update. Not quite what I was looking for because I don't want to run into DNS query timeouts when I actively need AGH during the day. |
Same here. The description in My 'workflow' is as follows for windows clients if anyone cares:
Automatic connections are unwanted here. An improvement would be:
Cheers |
LOL seems not usable at all. I'm stucked too. Actually, for the update to successfully run (at least on Linux), one must shutdown any running AdGH instance. Otherwise the code will stuck at BTW debugging with GDB on golang program is more than painful with the totally-no-accuracy breakpoints. @ainar-g Would you please reopen this issue? |
Merge in DNS/adguard-home from 5191-update-flag to master Updates #5191. Updates #4223. Squashed commit of the following: commit fbace49 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Mon Jan 9 12:05:16 2023 +0400 all: imp code, docs commit 8237dce Merge: ca9518f bbdcc67 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Fri Dec 30 14:45:55 2022 +0400 Merge branch 'master' into 5191-update-flag commit ca9518f Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 20:36:33 2022 +0400 home: imp code commit 1dc6c7c Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 18:26:08 2022 +0400 all: imp code, docs commit 7bbe893 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 03:44:48 2022 +0400 home: restart service on update commit e0d3c28 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 03:22:49 2022 +0400 all: update on first run commit 0aa4e78 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 02:47:30 2022 +0400 all: move some code to init less commit 68aebfa Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 00:36:00 2022 +0400 WIP commit 2c7fb97 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Dec 28 14:15:59 2022 +0400 home: imp logs commit 4b06d08 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Dec 27 19:21:17 2022 +0400 all: fix update flag
@Vexz00, @webmihir, @elandorr, @wesley800, hello again. We've published the |
Well, I'll close the issue for now if you don't mind, since we've been able to succesfully test it on our machines. Please feel free to reopen it if you'll face any issues with our fixed implementation. |
I'm sorry I forgot to respond over there long weekend. Yes I can confirm this is working on edge. Looking forward to this making it's way to 108 along with the actual fix! |
Thanks, I'll test it on the next update as well! |
Sorry for the late reply. I tried it earlier today and it looks like it would work if there was a new update available. But I have one question left: Will it update an already running instance of AGH so we can make a cron job to automatically update and completely forget about it? This would be a dream come true since this would mean I wouldn't have to do anything anymore and AGH is always up to date. |
@Vexz00, it'll actually only try to restart the service if the one installed. |
I tested it today with the new update.
Seems like it works fine. You can update when you explicitly want to update, without additional unwanted network activity, and without manually visiting github/unpacking/etc. Does this verify signature based on the initial binary, though? That seems pretty critical. We set it up once, verify your sig, and it then continues to rotate. Otherwise, if you're ever taken over, having this without human oversight seems risky. If you do it manually, there's a bigger chance you may notice the github repo is weird. |
@elandorr, please file a separate issue about that. |
About what? This is just the promised feedback for when there's a new update. |
And that's fine because with the start of the service an instance of AGH is started too. That means when there's a new update it'll install the update and restart the service which also restarts AGH. Everything is working fine this way. Only a manually started instance of AGH doesn't get restarted. |
Merge in DNS/adguard-home from 5191-update-flag to master Updates AdguardTeam#5191. Updates AdguardTeam#4223. Squashed commit of the following: commit fbace49 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Mon Jan 9 12:05:16 2023 +0400 all: imp code, docs commit 8237dce Merge: ca9518f bbdcc67 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Fri Dec 30 14:45:55 2022 +0400 Merge branch 'master' into 5191-update-flag commit ca9518f Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 20:36:33 2022 +0400 home: imp code commit 1dc6c7c Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 18:26:08 2022 +0400 all: imp code, docs commit 7bbe893 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 03:44:48 2022 +0400 home: restart service on update commit e0d3c28 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 03:22:49 2022 +0400 all: update on first run commit 0aa4e78 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 02:47:30 2022 +0400 all: move some code to init less commit 68aebfa Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Thu Dec 29 00:36:00 2022 +0400 WIP commit 2c7fb97 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Wed Dec 28 14:15:59 2022 +0400 home: imp logs commit 4b06d08 Author: Eugene Burkov <E.Burkov@AdGuard.COM> Date: Tue Dec 27 19:21:17 2022 +0400 all: fix update flag
(Split from #4219).
We need a command line flag to perform an update without the need to enable / use the Web API. Something like
./AdGuardHome --update
.The text was updated successfully, but these errors were encountered: