Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 8417f21

Browse files
authored
Fix stub when only user is root
1 parent f2936ce commit 8417f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script-library/docker-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ fi
227227

228228
# Add a stub if not adding non-root user access, user is root
229229
if [ "${ENABLE_NONROOT_DOCKER}" = "false" ] || [ "${USERNAME}" = "root" ]; then
230-
echo '/usr/bin/env bash -c "\$@"' > /usr/local/share/docker-init.sh
230+
echo -e '#!/usr/bin/env bash\nexec "$@"' > /usr/local/share/docker-init.sh
231231
chmod +x /usr/local/share/docker-init.sh
232232
exit 0
233233
fi

0 commit comments

Comments
 (0)