From 4fa4e17a980c9d5fe2c392027ea5edceec52a7fc Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 14 Jul 2024 18:49:17 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/functions/entrypoint.sh --- rootfs/usr/local/etc/docker/functions/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/etc/docker/functions/entrypoint.sh b/rootfs/usr/local/etc/docker/functions/entrypoint.sh index 3db5886..d6f0d15 100644 --- a/rootfs/usr/local/etc/docker/functions/entrypoint.sh +++ b/rootfs/usr/local/etc/docker/functions/entrypoint.sh @@ -486,6 +486,7 @@ __start_init_scripts() { [ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -o pipefail -x$DEBUGGER_OPTIONS || set -o pipefail local basename="" local init_pids="" + local initStatus=0 local init_dir="${1:-/usr/local/etc/docker/init.d}" local init_count="$(ls -A "$init_dir"/* 2>/dev/null | grep -v '\.sample' | wc -l)" mkdir -p "/tmp" "/run" "/run/init.d" @@ -500,9 +501,8 @@ __start_init_scripts() { for init in "$init_dir"/*.sh; do if [ -f "$init" ]; then name="$(basename "$init")" - (eval "$init" &) + sleep 10 && sh -c "$init" && sleep 20 || false initStatus=$(($? + initStatus)) - sleep 20 echo "" fi done