Showing
1 changed file
with
2 additions
and
1 deletions
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | 8 | ||
9 | import Model from './model'; | 9 | import Model from './model'; |
10 | import ssh from 'ssh2'; | 10 | import ssh from 'ssh2'; |
11 | -import InfluxDB from '../logger/influxdb'; | 11 | +// import InfluxDB from '../logger/influxdb'; |
12 | import ws from '../../lib/ws'; | 12 | import ws from '../../lib/ws'; |
13 | import md5 from 'md5'; | 13 | import md5 from 'md5'; |
14 | 14 | ||
@@ -167,6 +167,7 @@ class PageCahe extends Model { | @@ -167,6 +167,7 @@ class PageCahe extends Model { | ||
167 | //检查shell脚本的危险操作 | 167 | //检查shell脚本的危险操作 |
168 | if (self._checkDangerScript(script)) { | 168 | if (self._checkDangerScript(script)) { |
169 | self._broadcast(script); | 169 | self._broadcast(script); |
170 | + resolve(); | ||
170 | // let result = conn.exec(script, (err, stream) => { | 171 | // let result = conn.exec(script, (err, stream) => { |
171 | // if (!err) { | 172 | // if (!err) { |
172 | // resolve(); | 173 | // resolve(); |
-
Please register or login to post a comment