修改获取配置文件接口,初始化系统配置

This commit is contained in:
whyour
2024-01-18 13:51:06 +08:00
parent 1a94a660a5
commit 8283f62db2
9 changed files with 30 additions and 21 deletions
+2 -2
View File
@@ -284,7 +284,7 @@ export default class SystemService {
}
public async updateSystem() {
const cp = spawn('no_tee=true ql update false', { shell: '/bin/bash' });
const cp = spawn('real_time=true ql update false', { shell: '/bin/bash' });
cp.stdout.on('data', (data) => {
this.sockService.sendMessage({
@@ -311,7 +311,7 @@ export default class SystemService {
}
public async reloadSystem(target: 'system' | 'data') {
const cmd = `no_tee=true ql reload ${target || ''}`;
const cmd = `real_time=true ql reload ${target || ''}`;
const cp = spawn(cmd, { shell: '/bin/bash' });
cp.stdout.on('data', (data) => {