Custombuild hook?

jigster

Verified User
Joined
Jul 23, 2021
Messages
69
I'm trying to customise roundcube /var/www/html/roundcube/SQL/mysql.initial.sql to set a default value that can't be set elsewhere in the roundcube config, however the usual technique of copying the file to the custombuild/custom folder (i.e. /usr/local/directadmin/custombuild/custom/roundcube/SQL/mysql.initial.sql) doesn't work for this file. I guess custombuild ignores the custom/roundcube/SQL/ folder?

My next thought was to use a hook to change the values after custombuild updates roundcube, but it seems there is no custombuild hook? So how can I edit mysql.initial.sql and make the changes stick during custombuild roundcube updates? Thanks.
 
Anyone have any ideas? I've always been able to do this in standard Roundcube installation but with DA the changes get overwritten so I'm looking for ideas on a way around that.
 
Hello,

Create a folder: /usr/local/directadmin/custombuild/custom/hooks/roundcube/post/ and put your script into it, something like:

Code:
/usr/local/directadmin/custombuild/custom/hooks/roundcube/post/mysql-initial.sh

Add into the file instructions to import/update SQL as required.
 
Back
Top