Fix config loading

This commit is contained in:
Christoph Hagen 2022-02-24 11:40:21 +01:00
parent 13742551ef
commit 782cc107e2
2 changed files with 1 additions and 2 deletions

View File

@ -1,3 +1,2 @@
/data/logs/caps/server.log
/data/servers/caps/Public

View File

@ -17,7 +17,7 @@ public func configure(_ app: Application) throws {
.components(separatedBy: "\n")
.map { $0.trimmingCharacters(in: .whitespaces) }
.filter { !$0.isEmpty }
guard configData.count == 2 else {
guard configData.count >= 2 else {
throw CapError.invalidConfiguration
}
let logFile = URL(fileURLWithPath: configData[0])