update_post.sh won't run for pre-releases and downgrades

warg

Verified User
Joined
Nov 30, 2020
Messages
165
Hello,

I noticed that the update_post.sh script isn't run for pre-releases and downgrades (e. g. from pre-release to latest stable). I suspect this is due to the version number being the same. Is this intended behavior? I thought it would run because I expected that the script is there to be notified if e. g. DA components changed and thus new features or bugs can occur or to document when system was changed.

Best Regards,
 
If you need it to run after every update cron execution, take a look at your /etc/cron.*/custombuild file. It will contain details (I.e the path you need to use for your .sh script) for running cron pre/post hooks.
 
Hi @scriptkitty! I'm not sure I do understand your reply. I would like to trigger a custom script every time DirectAdmin is updated, regardless if it's due to a cronjob or due to manual admin activity.

I found this to notify admins about an update but I found no way to trigger that based on if an update was run. I think your reply only applies if I just update DirectAdmin via cronjobs but not manually, right? I also found no /etc/cron.*/custombuild file in my Debian 10 filesystem or documentation about this file.
 
Back
Top