Skip to content

Commit 45bbf0c

Browse files
use gosu
1 parent 67d1a32 commit 45bbf0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

init-plain/usr/local/bin/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ done
1212

1313
if [ "X${ENTRY_USER}" != "X" ];then
1414
echo "> execute CMD as user '${ENTRY_USER}'"
15-
exec su -s /bin/bash -c "$@" ${ENTRY_USER}
15+
exec gosu ${ENTRY_USER} /bin/bash -c "$@"
1616
else
1717
echo "> execute CMD '$@'"
1818
exec "$@"

0 commit comments

Comments
 (0)