script based hooks: don't propagate global env vars

env vars must be explicitly set

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-10-19 09:29:40 +02:00
parent 7e0b62b703
commit 47842ae614
13 changed files with 38 additions and 39 deletions

View File

@@ -13,7 +13,7 @@ If the hook defines an external program it can read the following environment va
If the external command completes with a zero exit status the connection will be accepted otherwise rejected.
Previous global environment variables aren't cleared when the script is called.
Global environment variables are cleared, for security reasons, when the script is called. You can set additional environment variables in the "command" configuration section.
The program must finish within 20 seconds.
If the hook defines an HTTP URL then this URL will be invoked as HTTP GET with the following query parameters: