Fix the backup target path

This commit is contained in:
Joona Hoikkala 2020-02-26 18:51:25 +02:00
parent a42cf70f71
commit b0feb33b9b
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C

View file

@ -266,8 +266,9 @@ class OCSPPrefetchMixin(object):
self._ensure_ocsp_dirs()
cache_path = os.path.join(self.config.work_dir, "ocsp", "ocsp_cache.db")
try:
apache_util.safe_copy(cache_path,
os.path.join(self.config.work_dir, "ocsp_work"))
apache_util.safe_copy(
cache_path,
os.path.join(self.config.work_dir, "ocsp_work", "ocsp_cache.db"))
except IOError:
logger.debug("Encountered an issue while trying to backup OCSP dbm file")