Skip to content

Commit 7009fb0

Browse files
committed
fix: ensure correct execution of runtime command in entrypoint script
1 parent 35500dc commit 7009fb0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/runtime-entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ if [ "$#" -eq 0 ]; then
2121
fi
2222

2323
# Drop root privileges and run runtime in foreground as PID 1 child under tini.
24-
exec su -s /bin/sh aegis -c 'exec "$@"' -- "$@"
24+
# With `sh -c`, first arg after `--` becomes $0, so exec must include $0.
25+
exec su -s /bin/sh aegis -c 'exec "$0" "$@"' -- "$@"

0 commit comments

Comments
 (0)