Hook script to be executed after any version of PHP build/update

Panormitis

Verified User
Joined
Sep 13, 2014
Messages
40
Hello,
I have created a script installsnuffle.sh in /usr/local/directadmin/custombuild/custom/hooks/php/post/ and gave it executable permissions.

I'm using multiple PHP versions on the server.
If I run da build php, the script runs at the end as it should.
If only one of the PHP versions needs updating and I use the CustomBuild Web UI, my script doesn't run at the end.

Any ideas on how to fix this and have the script run at the end of any PHP version build/update?
 
Last edited:
you need to add all possible commands hook.

the hooks will execute on the main command only.

example
Code:
da build all
the hooks will execute only "all" command, the child process/command that running won't trigger any hooks at all.
 
Hello,

Pre and Post hooks are getting executed fine on my end when a command of the following kind is used:

Code:
da build php 8.0
da build php 8.1
da build php 8.2
da build php 8.3

but if you want the hooks to be executed on build_versions then you should have a hook with the same name, as mentioned by the user Ohm J.
 
Back
Top