mirror of
https://github.com/casjaysdevdocker/code
synced 2025-01-18 12:34:29 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
parent
abc326412c
commit
a467648d41
@ -486,6 +486,7 @@ __start_init_scripts() {
|
|||||||
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -o pipefail -x$DEBUGGER_OPTIONS || set -o pipefail
|
[ "$DEBUGGER" = "on" ] && echo "Enabling debugging" && set -o pipefail -x$DEBUGGER_OPTIONS || set -o pipefail
|
||||||
local basename=""
|
local basename=""
|
||||||
local init_pids=""
|
local init_pids=""
|
||||||
|
local initStatus=0
|
||||||
local init_dir="${1:-/usr/local/etc/docker/init.d}"
|
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)"
|
local init_count="$(ls -A "$init_dir"/* 2>/dev/null | grep -v '\.sample' | wc -l)"
|
||||||
mkdir -p "/tmp" "/run" "/run/init.d"
|
mkdir -p "/tmp" "/run" "/run/init.d"
|
||||||
@ -500,9 +501,8 @@ __start_init_scripts() {
|
|||||||
for init in "$init_dir"/*.sh; do
|
for init in "$init_dir"/*.sh; do
|
||||||
if [ -f "$init" ]; then
|
if [ -f "$init" ]; then
|
||||||
name="$(basename "$init")"
|
name="$(basename "$init")"
|
||||||
(eval "$init" &)
|
sleep 10 && sh -c "$init" && sleep 20 || false
|
||||||
initStatus=$(($? + initStatus))
|
initStatus=$(($? + initStatus))
|
||||||
sleep 20
|
|
||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user