chore: run user patches as part of setup stack

Signed-off-by: georglauterbach <44545919+georglauterbach@users.noreply.github.com>
This commit is contained in:
georglauterbach 2025-01-19 10:48:53 +01:00
parent 2d56210c52
commit 22022481e2
No known key found for this signature in database
GPG Key ID: F367F7C43C118578
2 changed files with 3 additions and 2 deletions

View File

@ -130,6 +130,8 @@ function _register_functions() {
_register_start_daemon '_start_daemon_mta_sts_daemon'
fi
_register_setup_function '_setup_run_user_patches'
# ? >> Daemons
_register_start_daemon '_start_daemon_cron'
@ -185,7 +187,6 @@ if [[ ! -f /CONTAINER_START ]]; then
_register_functions
_check
_setup
_run_user_patches
else
# container was restarted
_early_variables_setup

View File

@ -103,7 +103,7 @@ function _setup_apply_fixes_after_configuration() {
fi
}
function _run_user_patches() {
function _setup_run_user_patches() {
local USER_PATCHES='/tmp/docker-mailserver/user-patches.sh'
if [[ -f ${USER_PATCHES} ]]; then