mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-07 17:10:07 +08:00
fix: 解决 node.js 模块更新失败的问题 (#2510)
This commit is contained in:
parent
c01b3764f8
commit
cd376b2e97
@ -506,7 +506,11 @@ func (r *RuntimeService) OperateNodeModules(req request.NodeModuleOperateReq) er
|
|||||||
cmd += " remove"
|
cmd += " remove"
|
||||||
}
|
}
|
||||||
case constant.RuntimeUpdate:
|
case constant.RuntimeUpdate:
|
||||||
|
if req.PkgManager == constant.RuntimeNpm {
|
||||||
cmd += " update"
|
cmd += " update"
|
||||||
|
} else {
|
||||||
|
cmd += " upgrade"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
cmd += " " + req.Module
|
cmd += " " + req.Module
|
||||||
return cmd2.ExecContainerScript(containerName, cmd, 5*time.Minute)
|
return cmd2.ExecContainerScript(containerName, cmd, 5*time.Minute)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user