1
0
mirror of https://github.com/TwiN/gatus.git synced 2026-02-12 22:10:15 +00:00

Store config in config instead of root directory

This commit is contained in:
TwinProduction
2019-12-28 12:55:00 -05:00
parent c4f7370397
commit 50cdc159db
3 changed files with 4 additions and 4 deletions

View File

@@ -44,10 +44,10 @@ func Load(configFile string) error {
}
func LoadDefaultConfiguration() error {
err := Load("config.yaml")
err := Load("config/config.yaml")
if err != nil {
if err == ErrConfigFileNotFound {
return Load("config.yml")
return Load("config/config.yml")
}
return err
}