Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 6fd7b18

Browse files
committed
Fix broken support for docker run --init
1 parent 79eaa8b commit 6fd7b18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

util/entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ set -e
55

66
# Support docker run --init parameter which obsoletes the use of dumb-init,
77
# but support dumb-init for those that still use it without --init
8-
if [ -x "/dev/init" ]; then
9-
run="exec"
10-
else
8+
if [ $$ -eq 1 ]; then
119
run="exec /usr/bin/dumb-init --"
10+
else
11+
run="exec"
1212
fi
1313

1414
# Single argument to command line is interface name

0 commit comments

Comments
 (0)