mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Otherwise, these goroutines could mess up with what resetDNS function do, reverting DHCP DNS settings to ctrld listeners.
17 lines
280 B
Go
17 lines
280 B
Go
//go:build !unix
|
|
|
|
package cli
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/rs/zerolog"
|
|
)
|
|
|
|
func selfUninstall(p *prog, logger zerolog.Logger) {
|
|
if uninstallInvalidCdUID(p, logger, false) {
|
|
logger.Warn().Msgf("service was uninstalled because device %q does not exist", cdUID)
|
|
os.Exit(0)
|
|
}
|
|
}
|