mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Load TLS config files from config path before stash home (#1678)
* Load tls files from config or home directory * Update README * Require both ssl files if either present
This commit is contained in:
@@ -346,3 +346,14 @@ func IsFsPathCaseSensitive(path string) (bool, error) {
|
||||
}
|
||||
return false, fmt.Errorf("can not determine case sensitivity of path %s", path)
|
||||
}
|
||||
|
||||
func FindInPaths(paths []string, baseName string) string {
|
||||
for _, p := range paths {
|
||||
filePath := filepath.Join(p, baseName)
|
||||
if exists, _ := FileExists(filePath); exists {
|
||||
return filePath
|
||||
}
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user