diff --git a/README.md b/README.md index 0282865d..fefc872f 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ The `sftpgo` configuration file contains the following sections: - `pool_size`, integer. Sets the maximum number of open connections for `mysql` and `postgresql` driver. Default 0 (unlimited) - `users_base_dir`, string. Users' default base directory. If no home dir is defined while adding a new user, and this value is a valid absolute path, then the user home dir will be automatically defined as the path obtained joining the base dir and the username - `actions`, struct. It contains the command to execute and/or the HTTP URL to notify and the trigger conditions - - `execute_on`, list of strings. Valid values are `add`, `update`, `delete`. + - `execute_on`, list of strings. Valid values are `add`, `update`, `delete`. `update` action will not be fired for internal updates such as the last login or the user quota fields. - `command`, string. Absolute path to the command to execute. Leave empty to disable. The command is invoked with the following arguments that identify the user added, updated or deleted: - `action`, any valid `execute_on` string - `username` diff --git a/dataprovider/dataprovider.go b/dataprovider/dataprovider.go index e9ff2d42..e7d400ca 100644 --- a/dataprovider/dataprovider.go +++ b/dataprovider/dataprovider.go @@ -134,7 +134,7 @@ type Config struct { // defined as the path obtained joining the base dir and the username UsersBaseDir string `json:"users_base_dir" mapstructure:"users_base_dir"` // Actions to execute on user add, update, delete. - // Update action will not be fired for internal updates such as the last login fiels or the user quota. + // Update action will not be fired for internal updates such as the last login or the user quota fields. Actions Actions `json:"actions" mapstructure:"actions"` }