瀏覽代碼

[MODULES][Terminal] Release v1.4

DSR! 2 年之前
父節點
當前提交
cbe5e632d2
共有 3 個文件被更改,包括 5 次插入1 次删除
  1. 二進制
      modules/build/Terminal.tar.gz
  2. 0 0
      modules/build/modules.json
  3. 5 1
      modules/src/Terminal/api/module.php

二進制
modules/build/Terminal.tar.gz


File diff suppressed because it is too large
+ 0 - 0
modules/build/modules.json


+ 5 - 1
modules/src/Terminal/api/module.php

@@ -149,7 +149,11 @@ class Terminal extends Module
         ];
         */
         exec("/usr/bin/pkill ttyd");
-        $this->response = ["success" => !\helper\checkRunning($this->getTerminalPath())];
+        $status = \helper\checkRunning($this->getTerminalPath());
+        if ($status) {
+            $this->addLog("Terminal could not be stop! command: /usr/bin/pkill ttyd");
+        }
+        $this->response = ["success" => !$status];
     }
 
     protected function getStatus()

Some files were not shown because too many files changed in this diff