SSH认证支持sudo

This commit is contained in:
GoEdgeLab
2021-12-06 19:24:30 +08:00
parent 811cd78453
commit 25549bdd7f
10 changed files with 48 additions and 4 deletions

View File

@@ -60,6 +60,7 @@ func (this *UpdateAction) RunPost(params struct {
PrivateKey string
Passphrase string
Description string
Su bool
Must *actions.Must
}) {
@@ -97,6 +98,7 @@ func (this *UpdateAction) RunPost(params struct {
PrivateKey: params.PrivateKey,
Passphrase: params.Passphrase,
Description: params.Description,
Su: params.Su,
NodeId: 0,
})
if err != nil {