mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-24 02:10:28 +08:00
SSH认证支持sudo
This commit is contained in:
@@ -30,6 +30,7 @@ func (this *CreateAction) RunPost(params struct {
|
||||
PrivateKey string
|
||||
Passphrase string
|
||||
Description string
|
||||
Su bool
|
||||
|
||||
Must *actions.Must
|
||||
}) {
|
||||
@@ -61,6 +62,7 @@ func (this *CreateAction) RunPost(params struct {
|
||||
PrivateKey: params.PrivateKey,
|
||||
Passphrase: params.Passphrase,
|
||||
Description: params.Description,
|
||||
Su: params.Su,
|
||||
NodeId: 0,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user