mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-23 13:02:28 +00:00
server: clear folders during initialization instead of deleting them (#572)
This commit is contained in:
1 parent
0942bf9f1e
commit
f53c1f5559
4 files changed
+9
-6
No files matched your search
@@ -50,8 +50,8 @@ ntfServerCLI cfgPath logPath =
|
||||
executableName = "ntf-server"
|
||||
storeLogFilePath = combine logPath "ntf-server-store.log"
|
||||
initializeServer InitOptions {enableStoreLog, signAlgorithm, ip, fqdn} = do
|
||||
deleteDirIfExists cfgPath
|
||||
deleteDirIfExists logPath
|
||||
clearDirIfExists cfgPath
|
||||
clearDirIfExists logPath
|
||||
createDirectoryIfMissing True cfgPath
|
||||
createDirectoryIfMissing True logPath
|
||||
let x509cfg = defaultX509Config {commonName = fromMaybe ip fqdn, signAlgorithm}
|
||||
|
||||
Reference in new issue
Block a user