+ service install: a post-install guide of what to do next

This commit is contained in:
Simon Zolin 2019-04-17 19:57:42 +03:00
parent d326d1bc8b
commit faa7c7b2d4
1 changed files with 9 additions and 0 deletions

View File

@ -108,6 +108,15 @@ func handleServiceControlAction(action string) {
log.Fatalf("Failed to start the service: %s", err)
}
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" {
cleanupService()
}