...
|
...
|
@@ -8,7 +8,7 @@ |
|
|
|
|
|
import Model from './model';
|
|
|
import ssh from 'ssh2';
|
|
|
import InfluxDB from '../logger/influxdb';
|
|
|
// import InfluxDB from '../logger/influxdb';
|
|
|
import ws from '../../lib/ws';
|
|
|
import md5 from 'md5';
|
|
|
|
...
|
...
|
@@ -167,6 +167,7 @@ class PageCahe extends Model { |
|
|
//检查shell脚本的危险操作
|
|
|
if (self._checkDangerScript(script)) {
|
|
|
self._broadcast(script);
|
|
|
resolve();
|
|
|
// let result = conn.exec(script, (err, stream) => {
|
|
|
// if (!err) {
|
|
|
// resolve();
|
...
|
...
|
|