mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
修复 pm2 重启逻辑
This commit is contained in:
1 parent
93e94ea94c
commit
bd166ee794
3 files changed
+5
-5
No files matched your search
@@ -168,7 +168,7 @@ export default class DependenceService {
|
||||
const socketMessageType = isInstall
|
||||
? 'installDependence'
|
||||
: 'uninstallDependence';
|
||||
const depName = dependency.name;
|
||||
const depName = dependency.name.trim();
|
||||
const depRunCommand = (
|
||||
isInstall
|
||||
? InstallDependenceCommandTypes
|
||||
@@ -191,7 +191,7 @@ export default class DependenceService {
|
||||
if (isInstall) {
|
||||
const getCommandPrefix = GetDependenceCommandTypes[dependency.type];
|
||||
const depVersionStr = versionDependenceCommandTypes[dependency.type];
|
||||
const [_depName] = dependency.name.split(depVersionStr);
|
||||
const [_depName] = dependency.name.trim().split(depVersionStr);
|
||||
const depInfo = (
|
||||
await promiseExecSuccess(
|
||||
dependency.type === DependenceTypes.linux
|
||||
|
||||
Reference in new issue
Block a user