You've already forked docker-mailserver
mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-09 23:07:35 +02:00
moved user_patches from misc to nearly the end of setups
This commit is contained in:
@@ -172,7 +172,8 @@ function register_functions() {
|
||||
if [ "$LOGWATCH_TRIGGER" != "none" ]; then
|
||||
_register_setup_function "_setup_logwatch"
|
||||
fi
|
||||
|
||||
|
||||
_register_setup_function "_setup_user_patches"
|
||||
|
||||
# Compute last as the config files are modified in-place
|
||||
_register_setup_function "_setup_chksum_file"
|
||||
@@ -195,7 +196,6 @@ function register_functions() {
|
||||
################### >> misc funcs
|
||||
|
||||
_register_misc_function "_misc_save_states"
|
||||
_register_misc_function "_misc_user_patches"
|
||||
|
||||
################### << misc funcs
|
||||
|
||||
@@ -1466,6 +1466,18 @@ function _setup_logwatch() {
|
||||
esac
|
||||
}
|
||||
|
||||
function _setup_user_patches() {
|
||||
notify 'inf' 'Executing user-patches.sh'
|
||||
|
||||
if [ -f /tmp/docker-mailserver/user-patches.sh ]; then
|
||||
chmod +x /tmp/docker-mailserver/user-patches.sh
|
||||
/tmp/docker-mailserver/user-patches.sh
|
||||
notify 'inf' "Executed 'config/user-patches.sh'"
|
||||
else
|
||||
notify 'inf' "No user patches executed because optional '/tmp/docker-mailserver/user-patches.sh' is not provided."
|
||||
fi
|
||||
}
|
||||
|
||||
function _setup_environment() {
|
||||
notify 'task' 'Setting up /etc/environment'
|
||||
|
||||
@@ -1596,18 +1608,6 @@ function _misc_save_states() {
|
||||
fi
|
||||
}
|
||||
|
||||
function _misc_user_patches() {
|
||||
notify 'inf' 'Executing user-patches.sh'
|
||||
|
||||
if [ -f /tmp/docker-mailserver/user-patches.sh ]; then
|
||||
chmod +x /tmp/docker-mailserver/user-patches.sh
|
||||
/tmp/docker-mailserver/user-patches.sh
|
||||
notify 'inf' "Executed 'config/user-patches.sh'"
|
||||
else
|
||||
notify 'inf' "No user patches executed because optional '/tmp/docker-mailserver/user-patches.sh' is not provided."
|
||||
fi
|
||||
}
|
||||
|
||||
##########################################################################
|
||||
# >> Start Daemons
|
||||
##########################################################################
|
||||
|
Reference in New Issue
Block a user