Skip to content

Commit 43c2f11

Browse files
authored
Merge pull request #669 from robinportigliatti/master
Adding the possibility to put conf file inside the directory /etc/lda…
2 parents c0d1af5 + a315cdb commit 43c2f11

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ldap2pg searches for configuration file in the following order :
1818
1. `ldap2pg.yml` in current working directory.
1919
2. `~/.config/ldap2pg.yml`.
2020
3. `/etc/ldap2pg.yml`.
21+
4. `/etc/ldap2pg/ldap2pg.yml`.
2122

2223
If `LDAP2PG_CONFIG` or `--config` is set,
2324
ldap2pg skips searching the standard file locations.

internal/config/file.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ func FindConfigFile(userValue string) string {
4141
path.Join(home, "/.config/ldap2pg.yaml"),
4242
"/etc/ldap2pg.yml",
4343
"/etc/ldap2pg.yaml",
44+
"/etc/ldap2pg/ldap2pg.yml",
45+
"/etc/ldap2pg/ldap2pg.yaml",
4446
}
4547
return FindFile(userValue, candidates)
4648
}

0 commit comments

Comments
 (0)