移除 ql -l 参数

This commit is contained in:
whyour
2023-11-23 19:40:52 +08:00
parent 4d97f0f44d
commit 59f7b72bb1
6 changed files with 12 additions and 18 deletions
+3 -2
View File
@@ -159,7 +159,7 @@ export default class SystemService {
}
public async updateSystem() {
const cp = spawn('ql -l update false', { shell: '/bin/bash' });
const cp = spawn('no_tee=true ql update false', { shell: '/bin/bash' });
cp.stdout.on('data', (data) => {
this.sockService.sendMessage({
@@ -186,7 +186,8 @@ export default class SystemService {
}
public async reloadSystem(target: 'system' | 'data') {
const cp = spawn(`ql -l reload ${target || ''}`, { shell: '/bin/bash' });
const cmd = `no_tee=true ql reload ${target || ''}`;
const cp = spawn(cmd, { shell: '/bin/bash' });
cp.stdout.on('data', (data) => {
this.sockService.sendMessage({