mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
base files
This commit is contained in:
parent
0e7e586ae3
commit
275a83667a
2
config/user-patches.sh
Normal file
2
config/user-patches.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "Default user-patches.sh successfully executed!"
|
|
@ -195,6 +195,7 @@ function register_functions() {
|
||||||
################### >> misc funcs
|
################### >> misc funcs
|
||||||
|
|
||||||
_register_misc_function "_misc_save_states"
|
_register_misc_function "_misc_save_states"
|
||||||
|
_register_misc_function "_misc_user_patches"
|
||||||
|
|
||||||
################### << misc funcs
|
################### << misc funcs
|
||||||
|
|
||||||
|
@ -1595,6 +1596,18 @@ function _misc_save_states() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function _misc_user_patches() {
|
||||||
|
notify 'task' '_misc_user_patches start'
|
||||||
|
|
||||||
|
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
|
# >> Start Daemons
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue