mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
Skip non-directories in the domains/ directory
This prevents chasquid from attempting to look for certs under a non-directory, e.g. `/etc/chasquid/domains/.gitignore/certs`. Amended-by: Alberto Bertogli <albertito@blitiri.com.ar> Adjusted commit message, applied `go fmt`.
This commit is contained in:
committed by
Alberto Bertogli
parent
bb8f16fb97
commit
36c5139da4
@@ -109,6 +109,10 @@ func main() {
|
||||
if err != nil {
|
||||
log.Fatalf("Invalid name %+q: %v", info.Name(), err)
|
||||
}
|
||||
if info.Type().IsRegular() {
|
||||
// Ignore regular files, we only care about directories.
|
||||
continue
|
||||
}
|
||||
dir := filepath.Join("domains", info.Name())
|
||||
loadDomain(domain, dir, s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user