Commit 04130c3e authored by ergonlogic's avatar ergonlogic

add extra safety: don't remove empty ssl keys

parent 129f34db
......@@ -161,6 +161,7 @@ class Provision_Service_http_ssl extends Provision_Service_http_public {
* @return the path to the receipt file if removal was successful
*/
static function free_certificate_site($ssl_key, $site) {
if (empty($ssl_key)) return FALSE;
$ssl_dir = $site->platform->server->http_ssld_path . "/" . $ssl_key . "/";
// Remove the file system reciept we left for this file
if (provision_file()->unlink($ssl_dir . $site->uri . ".receipt")->
......
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