mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 00:50:32 +00:00
update
This commit is contained in:
parent
a354a9e50b
commit
5ae25b5380
2 changed files with 21 additions and 0 deletions
18
web/Modules/Terminal/PostInstall.php
Normal file
18
web/Modules/Terminal/PostInstall.php
Normal 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 &");
|
||||
|
||||
}
|
||||
}
|
3
web/Modules/Terminal/shell-scripts/install-nodejs.sh
Normal file
3
web/Modules/Terminal/shell-scripts/install-nodejs.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
apt-get install npm nodejs -y
|
||||
cd /usr/local/phyre/web/Modules/Terminal/nodejs/terminal
|
||||
npm i
|
Loading…
Reference in a new issue