From 28b94351da41d744e3ccb98c5cb8183c019a0020 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Mon, 17 Feb 2025 11:26:12 +0100 Subject: [PATCH] build(docker/fradrive): simplify entrypoint --- docker/fradrive/fradrive-entrypoint.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docker/fradrive/fradrive-entrypoint.sh b/docker/fradrive/fradrive-entrypoint.sh index 10e92f6f8..9656252bd 100644 --- a/docker/fradrive/fradrive-entrypoint.sh +++ b/docker/fradrive/fradrive-entrypoint.sh @@ -4,17 +4,18 @@ cTime=$(date -Is) # export LOGDEST=/var/log/uniworx/${cTime}.log # kubernetes prefers log via stdout -typeset -a configs +# typeset -a configs configDir=${CONFIG_DIR-/cfg} -configs=() -if [[ -d "${configDir}" ]]; then - while IFS= read -d $'\0' cfg; do - # IMPORTANT: The paths to the settings-yaml-files should not contain spaces, otherwise this might fail runtime! - configs+=("${cfg}") - done < <(find "${configDir}" \( -name '*.yml' -o -name '*.yaml' \) -print0 | sort -rz) -fi +# configs=() +# if [[ -d "${configDir}" ]]; then +# while IFS= read -d $'\0' cfg; do +# # IMPORTANT: The paths to the settings-yaml-files should not contain spaces, otherwise this might fail runtime! +# configs+=("${cfg}") +# done < <(find "${configDir}" \( -name '*.yml' -o -name '*.yaml' \) -print0 | sort -rz) +# fi cd /var/lib/uniworx -exec -- uniworx ${configs} \ No newline at end of file +# exec -- uniworx ${configs} +find "${configDir}" \( -name '*.yml' -o -name '*.yaml' \) -print0 | sort -rz | xargs -0 exec -- uniworx \ No newline at end of file