PhyrePanel-mirror/web/Modules/Terminal/PostInstall.php
2024-04-28 13:24:28 +03:00

18 lines
409 B
PHP

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