mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
fix web terminal bugs
This commit is contained in:
parent
8a3138659b
commit
5ecae71561
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ class Terminal extends Page
|
|||
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');
|
||||
}
|
||||
if (!is_dir('/usr/local/phyre/web/storage/logs/terminal')) {
|
||||
$exec = shell_exec('mkdir -p /usr/local/phyre/web/storage/logs/terminal/');
|
||||
}
|
||||
$exec = shell_exec('node /usr/local/phyre/web/Modules/Terminal/nodejs/terminal/server.js >> /usr/local/phyre/web/storage/logs/terminal/server-terminal.log &');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue