mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-21 14:11:56 +00:00
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:
parent
55b39fa945
commit
143e5dd087
@ -18,7 +18,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
//go:embed resolvconf-workaround.sh
|
//go:embed resolvconf-workaround.sh
|
||||||
var legacyResolvconfScript []byte
|
var workaroundScript []byte
|
||||||
|
|
||||||
// resolvconfConfigName is the name of the config submitted to
|
// resolvconfConfigName is the name of the config submitted to
|
||||||
// resolvconf.
|
// resolvconf.
|
||||||
@ -105,7 +105,7 @@ func (m *resolvconfManager) SetDNS(config OSConfig) error {
|
|||||||
if err := os.MkdirAll(resolvconfLibcHookPath, 0755); err != nil {
|
if err := os.MkdirAll(resolvconfLibcHookPath, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := atomicfile.WriteFile(resolvconfHookPath, legacyResolvconfScript, 0755); err != nil {
|
if err := atomicfile.WriteFile(resolvconfHookPath, workaroundScript, 0755); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
m.scriptInstalled = true
|
m.scriptInstalled = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user