PhyrePanel-mirror/web/Modules/LetsEncrypt/PostInstall.php
2024-09-10 16:21:30 +03:00

18 lines
412 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 &");
}
}