Files
guru/net-dns/AdGuardHome/files/disable-update-cmd-opt.patch
Rahil Bhimjiani c02919c912 net-dns/AdGuardHome: add 0.107.45
1. Disable  `--update` option from command because it alters binary
from remote
2. install wiki pages

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
2024-03-07 14:08:30 +05:30

20 lines
759 B
Diff

diff --git a/internal/home/options.go b/internal/home/options.go
index d32aaa1..4503dad 100644
--- a/internal/home/options.go
+++ b/internal/home/options.go
@@ -243,14 +243,6 @@ var cmdLineOpts = []cmdLineOpt{{
description: "Don't check for updates.",
longName: "no-check-update",
shortName: "",
-}, {
- updateWithValue: nil,
- updateNoValue: func(o options) (options, error) { o.performUpdate = true; return o, nil },
- effect: nil,
- serialize: func(o options) (val string, ok bool) { return "", o.performUpdate },
- description: "Update the current binary and restart the service in case it's installed.",
- longName: "update",
- shortName: "",
}, {
updateWithValue: nil,
updateNoValue: nil,