mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-29 13:51:51 +02:00
cmd/cli: notice writing default config in local mode
This commit is contained in:
1 parent
9e6e647ff8
commit
17f6d7a77b
1 file changed
+3
@@ -1075,6 +1075,9 @@ func readConfigFile(writeDefaultConfig, notice bool) bool {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
mainLog.Load().Fatal().Msgf("failed to get default config file path: %v", err)
|
mainLog.Load().Fatal().Msgf("failed to get default config file path: %v", err)
|
||||||
}
|
}
|
||||||
|
if cdUID == "" && nextdns == "" {
|
||||||
|
mainLog.Load().Notice().Msg("Generating controld default config: " + fp)
|
||||||
|
}
|
||||||
mainLog.Load().Info().Msg("writing default config file to: " + fp)
|
mainLog.Load().Info().Msg("writing default config file to: " + fp)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in new issue
Block a user