mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix for missing paths
This commit is contained in:
@@ -93,6 +93,14 @@ class CertificatesV1
|
||||
if(!$response) {
|
||||
throw new Exception('Failed to issue a certificate');
|
||||
}
|
||||
|
||||
$path = APP_STORAGE_CERTIFICATES.'/'.$domain->get();
|
||||
|
||||
if(!is_readable($path)) {
|
||||
if (!mkdir($path, 0755, true)) {
|
||||
throw new Exception('Failed to create path...');
|
||||
}
|
||||
}
|
||||
|
||||
if(!@rename('/etc/letsencrypt/live/'.$domain->get().'/cert.pem', APP_STORAGE_CERTIFICATES.'/'.$domain->get().'/cert.pem')) {
|
||||
throw new Exception('Failed to rename certificate cert.pem: '.json_encode($response));
|
||||
|
||||
Reference in New Issue
Block a user