mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
cmd/cli: notice writing default config in local mode
This commit is contained in:
@@ -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