Add initial conditional to create log file if it does not exist
This commit is contained in:
parent
6f01d40f2e
commit
86b915288c
|
@ -123,6 +123,9 @@ func main() {
|
|||
}
|
||||
|
||||
for _, filename := range filesThatShouldExist {
|
||||
if !fileExists(opts.logPath) {
|
||||
os.OpenFile(opts.logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666)
|
||||
}
|
||||
if (opts.veryInsecure && (filename == opts.tlsCertPath || filename == opts.tlsKeyPath)) {
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue