|
74 | 74 | end |
75 | 75 |
|
76 | 76 | (* some constants *) |
77 | | -let extauth_hook_script_name = "extauth-hook" (* script name in /etc/xapi.d/plugins/ *) |
| 77 | +let extauth_hook_script_name = "extauth-hook" (* script name in @PLUGINDIR@/ *) |
78 | 78 | let event_name_after_subject_add = "after-subject-add" |
79 | 79 | let event_name_after_subject_remove = "after-subject-remove" |
80 | 80 | let event_name_after_xapi_initialize = "after-xapi-initialize" |
@@ -102,10 +102,10 @@ let can_execute_extauth_hook_script ~__context host event_name = |
102 | 102 | (* use the generic call below to avoid concurrency problems between the script and host.{enable,disable}_extauth *) |
103 | 103 | let call_extauth_hook_script_in_host_wrapper ~__context host event_name ~call_plugin_fn = |
104 | 104 | (* CP-709: call extauth-hook-script *) |
105 | | - (* Forkhelpers.execute_command_get_output hook-script "/etc/xapi.d/plugins/extauth-hook" *) |
| 105 | + (* Forkhelpers.execute_command_get_output hook-script "@PLUGINDIR@/extauth-hook" *) |
106 | 106 | (* fork a new thread and call new xapi.host.call-subject-add-hook-script method *) |
107 | 107 | (* see xapi_sync.ml *) |
108 | | - (* host.call-plugins scriptname (calls /etc/xapi.d/plugins/scriptname*) |
| 108 | + (* host.call-plugins scriptname (calls @PLUGINDIR@/scriptname*) |
109 | 109 |
|
110 | 110 | if can_execute_extauth_hook_script ~__context host event_name |
111 | 111 | then begin |
@@ -148,7 +148,7 @@ let call_extauth_hook_script_in_host ~__context host event_name = |
148 | 148 | let call_plugin_fn () = |
149 | 149 | Helpers.call_api_functions ~__context (fun rpc session_id -> |
150 | 150 | Client.Client.Host.call_plugin rpc session_id host (* will call extauth plugin with mutex *) |
151 | | - extauth_hook_script_name (* script name in /etc/xapi.d/plugins/ *) |
| 151 | + extauth_hook_script_name (* script name in @PLUGINDIR@/ *) |
152 | 152 | event_name (* event name sent to script *) |
153 | 153 | event_params (* parameters sent to event name *) |
154 | 154 | ) |
|
0 commit comments