scripts: follow up of #3115 (feedback) (#3124)

This commit is contained in:
Georg Lauterbach 2023-02-27 23:37:35 +01:00 committed by GitHub
parent 4b04c3e31c
commit 9ead9a54ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 23 deletions

View file

@ -10,11 +10,13 @@ function _register_setup_function
function _setup
{
while read -r FILE
# requires `shopt -s globstar` because of `**` which in
# turn is required as we're decending through directories
for FILE in /usr/local/bin/setup.d/**/*.sh
do
# shellcheck source=/dev/null
source "${FILE}"
done < <(find /usr/local/bin/setup.d/ -type f)
done
_log 'info' 'Configuring mail server'
for FUNC in "${FUNCS_SETUP[@]}"