mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2026-03-04 00:01:12 -05:00
CanAutoUpdate should not decide by util.HaveAdminRights #2072
Labels
No labels
P1: Critical
P2: High
P3: Medium
P4: Low
UI
bug
cannot reproduce
compatibility
dependencies
docker
documentation
duplicate
enhancement
enhancement
external libs
feature request
good first issue
help wanted
infrastructure
invalid
localization
needs investigation
performance
potential-duplicate
question
recurrent
research
snap
waiting for data
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AdGuardHome#2072
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ihipop on GitHub (Oct 28, 2020).
Originally assigned to: @EugeneOne1 on GitHub.
github.com/AdguardTeam/AdGuardHome@d1e55c31af/home/control_update.go (L101-L114)if we run AdGuardHome by systemd like this
The
CAP_NET_BIND_SERVICEcapability is grant by systemd and not exists in filesystemAmbientCapabilitiesdoc https://www.freedesktop.org/software/systemd/man/systemd.exec.html#AmbientCapabilities=It's safe to upgrade then
@ihipop commented on GitHub (Oct 28, 2020):
#1193
github.com/AdguardTeam/AdGuardHome@7ff743ab32#1944
@ihipop commented on GitHub (Oct 28, 2020):
IMO,the simple way is to have a
auto update policyoption, let the administrator to decide whether it’s safe or not to auto upgradeThe administrator is responsible for the failure of auto update
To interactive with systemd is not a good idea because it’s tooo heavy behavior and bundle to much to platform code
Let‘s keep it simple 。
@ihipop commented on GitHub (Oct 30, 2020):
Suggestions:
no-check-updateoptionupdate-policyoptionNew policy:
auto:auto update if possible, with a new version and execute file is located and writable on file system ,ignore the Capabilities stuff
manual: (default)same as
autobut will not update self until administrator click it on admin paneldisable:same as the old
no-check-update, will not perform any update check so will no self-update@EugeneOne1 commented on GitHub (Nov 30, 2020):
This should be fixed as of snapshot
641db73. Could you please check if our solution fixes the issue for you?@ihipop commented on GitHub (Nov 30, 2020):
I take a glance at the code ,Nice and clean fix than what I've suggested !!!
I will take a try and close my issue if it works fine
@ainar-g commented on GitHub (Dec 7, 2020):
@ihipop, hi, any news? Can we close the issue for now?
@ainar-g commented on GitHub (Dec 10, 2020):
I'll close this issue for now. Please feel free to reopen with more details if you think it should be reopened.