use /usr/local/etc/aptly.conf config file

fixes #1108
This commit is contained in:
André Roth
2024-09-14 15:46:31 +02:00
parent 8fd48e9fa9
commit 52faf78324
2 changed files with 2 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ func (context *AptlyContext) config() *utils.ConfigStructure {
}
} else {
homeLocation := filepath.Join(os.Getenv("HOME"), ".aptly.conf")
configLocations := []string{ homeLocation, "/etc/aptly.conf", }
configLocations := []string{homeLocation, "/usr/local/etc/aptly.conf", "/etc/aptly.conf"}
for _, configLocation := range configLocations {
// FIXME: check if exists, check if readable