Skip to content

Commit

Permalink
Attempt to fix config not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ullaakut committed Jul 5, 2020
1 parent 9a8d4c0 commit 485afeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/goneypot.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ import (
"os"
"os/signal"

"github.com/rs/zerolog"
"github.com/spf13/viper"
"github.com/Ullaakut/goneypot/pkg/configuration"
"github.com/Ullaakut/goneypot/pkg/listener"
"github.com/Ullaakut/goneypot/pkg/reporter"
"github.com/rs/zerolog"
"github.com/spf13/viper"
)

func main() {
viper.SetConfigName("config.yaml")
viper.SetConfigName("config")
viper.SetConfigType("yaml")
viper.AddConfigPath("/etc/goneypot/")
viper.AddConfigPath("$HOME/.config/goneypot/")
viper.AddConfigPath(".")
Expand Down

0 comments on commit 485afeb

Please sign in to comment.