UserCommands: change field name

This commit is contained in:
Andrew Woodlee 2025-03-11 15:36:43 -05:00
parent 99c622b69f
commit 18a64de0de
5 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,3 @@
kind: Added
body: 'UserCommands: add ssh public keys when running locally'
time: 2025-03-11T15:20:28.487596157-05:00

View File

@ -0,0 +1,3 @@
kind: Added
body: 'UserCommands: add field CreateUserHome'
time: 2025-03-11T15:30:26.824884876-05:00

View File

@ -12,6 +12,8 @@ This is dedicated to `user` commands. The command `type` field must be `user`. U
| `userOperation` | The type of operation to perform. | `string` | yes | no |
| `userID` | The user ID to use. | `string` | no | no |
| `userGroups` | The groups the user should be added to. | `[]string` | no | no |
| `systemUser` | Create a system user. | `bool` | no | no |
| `userCreateHome`| Create the home directory. | `bool` | no | no |
| `userSshPubKeys`| The keys to add to the user's authorized keys. | `[]string` | no | yes |
| `userShell` | The shell for the user. | `string` | no | no |
| `userHome` | The user's home directory. | `string` | no | no |

View File

@ -117,7 +117,7 @@ type (
UserCreateHome bool `yaml:"userCreateHome,omitempty"`
SystemUser bool `yaml:"systemUser,omitempty"`
UserIsSystem bool `yaml:"userIsSystem,omitempty"`
UserPassword string `yaml:"userPassword,omitempty"`

View File

@ -293,7 +293,7 @@ func getCommandTypeAndSetCommandInfo(command *Command) *Command {
command.Username,
command.UserHome,
command.UserShell,
command.SystemUser,
command.UserIsSystem,
command.UserCreateHome,
command.UserGroups,
command.Args)