From 143e5dd087105a4d4c7a121e726f15fb98aaf554 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 10 Apr 2021 21:28:27 -0700 Subject: [PATCH] net/dns: rename script variable. Debian resolvconf is not legacy, it's alive and well, just historically before the other implementations. Signed-off-by: David Anderson --- net/dns/resolvconf.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/dns/resolvconf.go b/net/dns/resolvconf.go index 4f0b7d43c..1e1fb0ac6 100644 --- a/net/dns/resolvconf.go +++ b/net/dns/resolvconf.go @@ -18,7 +18,7 @@ ) //go:embed resolvconf-workaround.sh -var legacyResolvconfScript []byte +var workaroundScript []byte // resolvconfConfigName is the name of the config submitted to // resolvconf. @@ -105,7 +105,7 @@ func (m *resolvconfManager) SetDNS(config OSConfig) error { if err := os.MkdirAll(resolvconfLibcHookPath, 0755); err != nil { return err } - if err := atomicfile.WriteFile(resolvconfHookPath, legacyResolvconfScript, 0755); err != nil { + if err := atomicfile.WriteFile(resolvconfHookPath, workaroundScript, 0755); err != nil { return err } m.scriptInstalled = true