From 275a83667a76fef1046fa3306a09f72aa4686352 Mon Sep 17 00:00:00 2001 From: Undercover1989 Date: Tue, 8 Oct 2019 21:22:12 +0200 Subject: [PATCH] base files --- config/user-patches.sh | 2 ++ target/start-mailserver.sh | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 config/user-patches.sh diff --git a/config/user-patches.sh b/config/user-patches.sh new file mode 100644 index 00000000..aedb86be --- /dev/null +++ b/config/user-patches.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "Default user-patches.sh successfully executed!" \ No newline at end of file diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 0260002f..e027ba4e 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -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 ##########################################################################