This commit is contained in:
Bozhidar 2024-04-28 13:24:28 +03:00
parent a354a9e50b
commit 5ae25b5380
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<?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 &");
}
}

View file

@ -0,0 +1,3 @@
apt-get install npm nodejs -y
cd /usr/local/phyre/web/Modules/Terminal/nodejs/terminal
npm i