PhyrePanel-mirror/web/Modules/Terminal/PostInstall.php

19 lines
409 B
PHP
Raw Normal View History

2024-04-28 10:24:28 +00:00
<?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 &");
}
}