Update LetsEncryptSecureDomain.php

This commit is contained in:
Bozhidar 2024-09-10 16:29:46 +03:00
parent 0c699059f5
commit cf6095d9c6

View file

@ -39,7 +39,11 @@ class LetsEncryptSecureDomain
'organization' => $generalSettings['organization_name'],
])->render();
$exec = shell_exec($certbotHttpSecureCommand);
$tmpFile = '/tmp/certbot-http-secure-command-'.$findDomain->id.'.sh';
file_put_contents($tmpFile, $certbotHttpSecureCommand);
$exec = dd("bash $tmpFile");
unlink($tmpFile);
$validateCertificates = [];