This commit is contained in:
Bozhidar 2024-09-10 16:35:09 +03:00
parent cf6095d9c6
commit 3eaf9fd96b
2 changed files with 4 additions and 2 deletions

View file

@ -41,7 +41,10 @@ class LetsEncryptSecureDomain
$tmpFile = '/tmp/certbot-http-secure-command-'.$findDomain->id.'.sh';
file_put_contents($tmpFile, $certbotHttpSecureCommand);
$exec = dd("bash $tmpFile");
shell_exec('chmod +x '.$tmpFile);
shell_exec('chmod +x /usr/local/phyre/web/Modules/LetsEncrypt/shell/hooks/pre/http-authenticator.sh');
shell_exec('chmod +x /usr/local/phyre/web/Modules/LetsEncrypt/shell/hooks/post/http-cleanup.sh');
$exec = shell_exec("bash $tmpFile");
unlink($tmpFile);

View file

@ -50,7 +50,6 @@ class LetsEncryptCertificate extends Model
$model->domain_ssl_certificate_id = $findSSL->id;
$model->certificate = $findSSL->certificate;
$model->private_key = $findSSL->private_key;
$model->certificate_chain = $findSSL->certificate_chain;
$model->expires_at = $findSSL->expiration_date;
}
});