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>
pull/1691/head
David Anderson 3 years ago
parent 55b39fa945
commit 143e5dd087

@ -18,7 +18,7 @@ import (
)
//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

Loading…
Cancel
Save