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 <danderson@tailscale.com>
This commit is contained in:
David Anderson 2021-04-10 21:28:27 -07:00
parent 55b39fa945
commit 143e5dd087

View File

@ -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