diff --git a/back/services/system.ts b/back/services/system.ts index ba48ae3aa88..89c5f013be2 100644 --- a/back/services/system.ts +++ b/back/services/system.ts @@ -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,8 +311,10 @@ export default class SystemService { } public async reloadSystem(target: 'system' | 'data') { - const cmd = `no_tee=true ql reload ${target || ''}`; - const cp = spawn(cmd, { shell: '/bin/bash' }); + const cmd = `real_time=true ql reload ${target || ''}`; + const cp = spawn(cmd, { shell: '/bin/bash', detached: true }); + + cp.unref(); cp.stdout.on('data', (data) => { this.sockService.sendMessage({ diff --git a/shell/update.sh b/shell/update.sh index fb1e66d56e9..3db4d0788ea 100755 --- a/shell/update.sh +++ b/shell/update.sh @@ -475,6 +475,9 @@ main() { if [[ "$no_tee" == "true" ]]; then cmd=">> $file_path 2>&1" fi + if [[ "$real_time" == "true" ]]; then + cmd="" + fi local time_format="%Y-%m-%d %H:%M:%S" local time=$(date "+$time_format") diff --git a/src/pages/setting/dependence.tsx b/src/pages/setting/dependence.tsx index f7342ff179d..7e97c8de339 100644 --- a/src/pages/setting/dependence.tsx +++ b/src/pages/setting/dependence.tsx @@ -124,7 +124,7 @@ const Dependence = () => { onClick={() => { updateSystemConfig('dependence-proxy'); }} - style={{ width: 84 }} + style={{ width: 100 }} > {intl.get('确认')} @@ -149,7 +149,7 @@ const Dependence = () => { onClick={() => { updateSystemConfigStream('node-mirror'); }} - style={{ width: 84 }} + style={{ width: 100 }} > {intl.get('确认')} @@ -174,7 +174,7 @@ const Dependence = () => { onClick={() => { updateSystemConfig('python-mirror'); }} - style={{ width: 84 }} + style={{ width: 100 }} > {intl.get('确认')} @@ -201,7 +201,7 @@ const Dependence = () => { onClick={() => { updateSystemConfigStream('linux-mirror'); }} - style={{ width: 84 }} + style={{ width: 100 }} > {intl.get('确认')}