mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
cf6095d9c6
commit
3eaf9fd96b
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue