pkg naming

This commit is contained in:
DataHearth 2021-03-16 17:22:55 +01:00
parent 38c4a95b65
commit 30c99dea7c
No known key found for this signature in database
GPG Key ID: E88FD356ACC5F3C4
1 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,9 @@ var (
Checkout the documentation for parameters in the yaml config file.
`,
Run: func(cmd *cobra.Command, args []string) {
ddnsclient.Start(logger)
if err := ddnsclient.Start(logger); err != nil {
logrus.Error(err)
}
},
}
logger = logrus.StandardLogger()
@ -26,7 +28,7 @@ func init() {
viper.BindEnv("CONFIG_PATH")
viper.SetConfigType("yaml")
if conf := viper.GetString("CONFIG_PATH"); conf == "" {
viper.SetConfigFile("ddns-client.yaml")
viper.SetConfigFile("ddnsclient.yaml")
} else {
viper.SetConfigFile(conf)
}