Save OpenSSL rand file in data directory to avoid error message on Windows

This commit is contained in:
shortcutme 2019-03-29 02:29:32 +01:00
parent b814a633c6
commit bad4d14cf6
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 6 additions and 3 deletions

View file

@ -107,7 +107,7 @@ def cleanup():
for dir_path in [config.data_dir, config.data_dir + "-temp"]:
for file_name in os.listdir(dir_path):
ext = file_name.rsplit(".", 1)[-1]
if ext not in ["csr", "pem", "srl", "db", "json"]:
if ext not in ["csr", "pem", "srl", "db", "json", "tmp"]:
continue
file_path = dir_path + "/" + file_name
if os.path.isfile(file_path):