mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* Use tini as the ENTRYPOINT implicitly Signed-off-by: Gergely Czuczy <[email protected]> * Explicitly call /bin/cp instead of relying on PATH Signed-off-by: Gergely Czuczy <[email protected]> * POSIX sh is sufficient for entrypoint.sh Signed-off-by: Gergely Czuczy <[email protected]> * Add 2.6-2.7 to docs indexes Signed-off-by: Gergely Czuczy <[email protected]> * Add note on tini on entry to 2.6-2.7 upgrade notes Signed-off-by: Gergely Czuczy <[email protected]> * Added note to 2.7-2.8 notes on tini as entry Signed-off-by: Gergely Czuczy <[email protected]> --------- Signed-off-by: Gergely Czuczy <[email protected]>
10 lines
203 B
Bash
Executable File
10 lines
203 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# If we're started as PID 1, we should wrap command execution through tini to
|
|
# prevent leakage of orphaned processes ("zombies").
|
|
if test "$$" = "1"; then
|
|
exec tini -- $@
|
|
else
|
|
exec "$@"
|
|
fi
|