PhyrePanel-mirror/web/Modules/LetsEncrypt/PostInstall.php
2024-09-25 15:50:28 +03:00

19 lines
433 B
PHP

<?php
namespace Modules\LetsEncrypt;
use App\ModulePostInstall;
class PostInstall extends ModulePostInstall
{
public $supportLog = true;
public function run()
{
$installDockerShellFile = base_path('Modules/LetsEncrypt/shell/install-letsencrypt.sh');
shell_exec("chmod +x $installDockerShellFile");
shell_exec("bash $installDockerShellFile >> $this->logFile &");
return true;
}
}