mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
Update Terminal.php
This commit is contained in:
parent
4f75c8d511
commit
c75cf6f1eb
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ class Terminal extends Page
|
|||
}
|
||||
}
|
||||
if ($runNewTerminal) {
|
||||
// $exec = shell_exec('node /usr/local/phyre/web/Modules/Terminal/nodejs/terminal/server.js >> /usr/local/phyre/web/storage/logs/terminal/server-terminal.log &');
|
||||
if (!is_dir('/usr/local/phyre/web/Modules/Terminal/nodejs/terminal/node_modules')) {
|
||||
$exec = shell_exec('cd /usr/local/phyre/web/Modules/Terminal/nodejs/terminal && npm install');
|
||||
}
|
||||
$exec = shell_exec('node /usr/local/phyre/web/Modules/Terminal/nodejs/terminal/server.js >> /usr/local/phyre/web/storage/logs/terminal/server-terminal.log &');
|
||||
}
|
||||
|
||||
return [
|
||||
|
|
Loading…
Reference in a new issue