+ service install: a post-install guide of what to do next
This commit is contained in:
parent
d326d1bc8b
commit
faa7c7b2d4
|
@ -108,6 +108,15 @@ func handleServiceControlAction(action string) {
|
||||||
log.Fatalf("Failed to start the service: %s", err)
|
log.Fatalf("Failed to start the service: %s", err)
|
||||||
}
|
}
|
||||||
log.Printf("Service has been started")
|
log.Printf("Service has been started")
|
||||||
|
|
||||||
|
if detectFirstRun() {
|
||||||
|
log.Printf(`Almost ready!
|
||||||
|
AdGuard Home is successfully installed and will automatically start on boot.
|
||||||
|
There are a few more things that must be configured before you can use it.
|
||||||
|
Click on the link below and follow the Installation Wizard steps to finish setup.`)
|
||||||
|
printHTTPAddresses("http")
|
||||||
|
}
|
||||||
|
|
||||||
} else if action == "uninstall" {
|
} else if action == "uninstall" {
|
||||||
cleanupService()
|
cleanupService()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue