From 97274776c8ec48d88e09e071651a6b5e6429558f Mon Sep 17 00:00:00 2001 From: Gregory Fischer Date: Sun, 27 May 2018 13:58:20 -0500 Subject: [PATCH] fix PHP warning existence .dev --- Controllers/Cli/Install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Controllers/Cli/Install.php b/Controllers/Cli/Install.php index 9b69906a2b..4663fe3f27 100644 --- a/Controllers/Cli/Install.php +++ b/Controllers/Cli/Install.php @@ -95,7 +95,10 @@ public function keys() openssl_pkey_export($ssl, $privateKey); $publicKey = openssl_pkey_get_details($ssl)['key']; - mkdir($target); + if (!file_exists($target)) { + mkdir($target); + }; + file_put_contents("{$target}minds.pem", $privateKey); file_put_contents("{$target}minds.pub", $publicKey);