mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
dataprovider events: fix string formatting for program hook
Fixes #1845 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
503508d962
commit
ecf7e0b49c
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ func executeNotificationCommand(operation, executor, ip, objectType, objectName,
|
|||
|
||||
cmd := exec.CommandContext(ctx, config.Actions.Hook, args...)
|
||||
cmd.Env = append(env,
|
||||
fmt.Sprintf("SFTPGO_PROVIDER_ACTION=%vs", operation),
|
||||
fmt.Sprintf("SFTPGO_PROVIDER_ACTION=%s", operation),
|
||||
fmt.Sprintf("SFTPGO_PROVIDER_OBJECT_TYPE=%s", objectType),
|
||||
fmt.Sprintf("SFTPGO_PROVIDER_OBJECT_NAME=%s", objectName),
|
||||
fmt.Sprintf("SFTPGO_PROVIDER_USERNAME=%s", executor),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue