mirror of
https://github.com/tomav/docker-mailserver
synced 2025-08-31 22:35:40 +00:00
refactoring: split helper functions into smaller scripts (#2420)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#! /bin/bash
|
||||
|
||||
# shellcheck source=./helper-functions.sh
|
||||
. /usr/local/bin/helper-functions.sh
|
||||
# shellcheck source=./helpers/index.sh
|
||||
source /usr/local/bin/helpers/index.sh
|
||||
|
||||
unset FUNCS_SETUP FUNCS_FIX FUNCS_CHECK FUNCS_MISC
|
||||
unset DAEMONS_START HOSTNAME DOMAINNAME CHKSUM_FILE
|
||||
unset DAEMONS_START HOSTNAME DOMAINNAME
|
||||
|
||||
#shellcheck disable=SC2034
|
||||
declare -A VARS
|
||||
@@ -72,12 +72,8 @@ VARS[UPDATE_CHECK_INTERVAL]="${UPDATE_CHECK_INTERVAL:=1d}"
|
||||
# shellcheck disable=SC2034
|
||||
VARS[VIRUSMAILS_DELETE_DELAY]="${VIRUSMAILS_DELETE_DELAY:=7}"
|
||||
|
||||
export HOSTNAME DOMAINNAME CHKSUM_FILE
|
||||
|
||||
_obtain_hostname_and_domainname
|
||||
|
||||
CHKSUM_FILE=/tmp/docker-mailserver-config-chksum
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# ? << Setup of default and global values / variables
|
||||
# --
|
||||
@@ -236,19 +232,19 @@ function _register_misc_function
|
||||
# ------------------------------------------------------------
|
||||
|
||||
# shellcheck source=./startup/check-stack.sh
|
||||
. /usr/local/bin/check-stack.sh
|
||||
source /usr/local/bin/check-stack.sh
|
||||
|
||||
# shellcheck source=./startup/setup-stack.sh
|
||||
. /usr/local/bin/setup-stack.sh
|
||||
source /usr/local/bin/setup-stack.sh
|
||||
|
||||
# shellcheck source=./startup/fixes-stack.sh
|
||||
. /usr/local/bin/fixes-stack.sh
|
||||
source /usr/local/bin/fixes-stack.sh
|
||||
|
||||
# shellcheck source=./startup/misc-stack.sh
|
||||
. /usr/local/bin/misc-stack.sh
|
||||
source /usr/local/bin/misc-stack.sh
|
||||
|
||||
# shellcheck source=./startup/daemons-stack.sh
|
||||
. /usr/local/bin/daemons-stack.sh
|
||||
source /usr/local/bin/daemons-stack.sh
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# ? << Sourcing all stacks
|
||||
|
Reference in New Issue
Block a user