Order of custombuild post hooks

sparek

Verified User
Joined
Jun 27, 2019
Messages
523
How does Custombuild determine the order for executing post event hooks.

For exim_conf, I have several post hook events that are triggered, but they need to go in order. I prepended the file names with numeric digits to try to get them to work in order, but that doesn't seem to be the case:

Executing '/usr/local/directadmin/custombuild/custom/hooks/exim_conf/post/900_exim_conf_post.sh'...
Executing '/usr/local/directadmin/custombuild/custom/hooks/exim_conf/post/101_disable_auth_sending_spoof.sh'...
Executing '/usr/local/directadmin/custombuild/custom/hooks/exim_conf/post/999_reload_exim.sh'...
Executing '/usr/local/directadmin/custombuild/custom/hooks/exim_conf/post/100_log_selector.sh'...


Shouldn't these execute as 100, 101, 900, and then 999?

What naming convention needs to be used to insure that hooks execute in order?
 
Back
Top