actions: add a generic hook to define external commands and HTTP URL

We can only define a single hook now and it can be an HTTP notification
or an external command, not both
This commit is contained in:
Nicola Murino
2020-05-24 15:29:39 +02:00
parent 760cc9ba5a
commit c27e3ef436
8 changed files with 130 additions and 71 deletions

View File

@@ -9,8 +9,7 @@
"upload_mode": 0,
"actions": {
"execute_on": [],
"command": "",
"http_notification_url": ""
"hook": ""
},
"host_keys": [],
"kex_algorithms": [],
@@ -46,8 +45,7 @@
"users_base_dir": "",
"actions": {
"execute_on": [],
"command": "",
"http_notification_url": ""
"hook": ""
},
"external_auth_hook": "",
"external_auth_scope": 0,