mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Fixed case where certificate does not currently exist
This commit is contained in:
parent
49617ab467
commit
ddb2d1922f
1 changed files with 6 additions and 1 deletions
|
|
@ -182,7 +182,12 @@ class ZimbraInstaller(common.Installer):
|
|||
:raises .PluginError: when save is unsuccessful
|
||||
|
||||
"""
|
||||
save_files = [self._zimbra_cert_crt, self._zimbra_cert_key, self._zimbra_cert_ca]
|
||||
save_files = []
|
||||
if os.path.isfile(self._zimbra_cert_crt) and os.path.isfile(self._zimbra_cert_key):
|
||||
save_files.append(self._zimbra_cert_crt)
|
||||
save_files.append(self._zimbra_cert_key)
|
||||
if os.path.isfile(self._zimbra_cert_ca):
|
||||
save_files.append(self._zimbra_cert_ca)
|
||||
self.add_to_checkpoint(save_files, "", temporary)
|
||||
|
||||
# Copy the certificate and deploy
|
||||
|
|
|
|||
Loading…
Reference in a new issue