Commit 129f34db authored by ergonlogic's avatar ergonlogic

don't delete an ssl certificate when ssl is disabled

this would have destroyed the whole ssl.d directory, wheepee.
parent f0980e0d
......@@ -50,10 +50,6 @@ class Provision_Config_Http_Ssl_Site extends Provision_Config_Http_Site {
'exclude' => "{$path}/*.receipt", // Don't need to synch the receipts
));
}
else {
// XXX: to be tested, not sure the data structure is sound
Provision_Service_http_ssl::free_certificate_site($this->ssl_key, $this);
}
}
/**
......@@ -62,8 +58,10 @@ class Provision_Config_Http_Ssl_Site extends Provision_Config_Http_Site {
function unlink() {
parent::unlink();
// XXX: to be tested, not sure the data structure is sound
Provision_Service_http_ssl::free_certificate_site($this->ssl_key, $this);
if ($this->ssl_enabled) {
// XXX: to be tested, not sure the data structure is sound
Provision_Service_http_ssl::free_certificate_site($this->ssl_key, $this);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment