In the stable branch (next serie 1.2.x) the hook files are deprecated in favor of listener files.
See the related documentation for further information: https://github.com/i-MSCP/imsc…onfigs/debian/listeners.d
Note: During upgrade, the /etc/imscp/hooks.d directory is automatically moved to the new location /etc/imscp/listeners.d but you'll have to run the installer twice because on the first run, the listeners will not be loaded.
Does some plugins are installing some hook files? If yes, we must just add a check on the i-MSCP codename (eg. if codename is eagle ---> hook files must be installed into /etc/imscp/hooks.d, else, they must be installed into /etc/imscp/listeners.d). From my side, only the TemplateEditor plugin installs its own hook file (now called listener file).
EDIT: It's no longer needed to run the installer twice. A compatibility rustine has been added.