base files

This commit is contained in:
Undercover1989 2019-10-08 21:22:12 +02:00
parent 0e7e586ae3
commit 275a83667a
2 changed files with 15 additions and 0 deletions

2
config/user-patches.sh Normal file
View file

@ -0,0 +1,2 @@
#!/bin/bash
echo "Default user-patches.sh successfully executed!"

View file

@ -195,6 +195,7 @@ function register_functions() {
################### >> misc funcs
_register_misc_function "_misc_save_states"
_register_misc_function "_misc_user_patches"
################### << misc funcs
@ -1595,6 +1596,18 @@ function _misc_save_states() {
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
##########################################################################