CustomBuild will not show DirectAdmin updates - pre/post hooks?

sparek

Verified User
Joined
Jun 27, 2019
Messages
495
I suppose this should start with, what is the recommended way of updating DirectAdmin from the command-line now?

Previously I had used:

/usr/local/directadmin/custombuild/build update_da

But this nugget in the 1.666 Changelog:


presents a question as to whether that is still available. The changelog doesn't explicitly say that it is not available, but does use verbiage to say that it's not recommended (which I would take to mean that it may be removed eventually).

The issue with using

/usr/local/directadmin/directadmin update

to update DirectAdmin is that there are no pre and post hooks available (that I'm aware of).

With

/usr/local/directadmin/custombuild/build update_da

I can put pre and post hooks in /usr/local/directadmin/custombuild/custom/hooks/update_da/pre and /usr/local/directadmin/custombuild/custom/hooks/update_da/post

Is there something similar for /usr/local/directadmin/directadmin update ?

I do not use, nor do I want to use, automatic updates.
 
I have my dumb moments that usually come to light shortly after making a post.

Since I'm doing all of this manually from the command-line, I don't really need a pre/post hook for DirectAdmin updates.

I can just write my own shell wrapper script to do pre work, then update DirectAdmin, then do post work.

I just have to execute that script to perform the actual DirectAdmin update.
 
Back
Top