Hello,
CB 2.0 rev. 2369 has been released. It's a huge release for developers As it now lets you overwrite any call, execute pre/post hooks etc. For example, you could now:
1) create "./build varnish" or just overwrite regular "./build apache" call with whatever you want by using pre-call hook and 'exiting' at the end
2) execute anything before/after CustomBuild command, for example, after update_versions you could mail yourself/server-owner a message that updates have been applied
All CustomBuild variables are reachable in 'hooks', structure is /usr/local/directadmin/custombuild/custom/hooks/command/pre/anything.sh (pre could be post as well), for example, you could try
If you'd like to just finish the function, "return" instead of "exit" could be used.
For per-function hooks - if any are needed, just create a ticket/mail us, and they'll be added
In addition to this, CB 2.0 rev. 2369 includes
1) Update OS packages
2) Update CustomBuild and CustomBuild packages
Everything with just a single call.
CB 2.0 rev. 2369 has been released. It's a huge release for developers As it now lets you overwrite any call, execute pre/post hooks etc. For example, you could now:
1) create "./build varnish" or just overwrite regular "./build apache" call with whatever you want by using pre-call hook and 'exiting' at the end
2) execute anything before/after CustomBuild command, for example, after update_versions you could mail yourself/server-owner a message that updates have been applied
All CustomBuild variables are reachable in 'hooks', structure is /usr/local/directadmin/custombuild/custom/hooks/command/pre/anything.sh (pre could be post as well), for example, you could try
custom/hooks/versions/pre/test.sh
with the following content:
Code:
#!/bin/sh
echo "Oh yeah! My PHP version is ${PHP1_RELEASE_OPT}, and I'm just exiting with a strange error code instead of listing the version updates...."
exit 4
If you'd like to just finish the function, "return" instead of "exit" could be used.
For per-function hooks - if any are needed, just create a ticket/mail us, and they'll be added
In addition to this, CB 2.0 rev. 2369 includes
update_versions_full
, update_full
and update_versions full
calls, they all do the same:1) Update OS packages
2) Update CustomBuild and CustomBuild packages
Everything with just a single call.