This commit is contained in:
@ -30,11 +30,11 @@ if [ "${DOCKER_USER-}" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# git使用openssh的shh程序
|
# git使用openssh的shh程序
|
||||||
su "$(id -un 1000)" -c 'git config --global core.sshCommand "/usr/bin/ssh"'
|
su "$(id -un 1000)" -c "git config --global core.sshCommand /usr/bin/ssh"
|
||||||
|
|
||||||
if [ -n "$GIT_USER" ] && [ -n "$GIT_EMAIL" ]; then
|
if [ -n "$GIT_USER" ] && [ -n "$GIT_EMAIL" ]; then
|
||||||
su "$(id -un 1000)" -c 'git config --global user.name "$GIT_USER"'
|
su "$(id -un 1000)" -c "git config --global user.name '$GIT_USER'"
|
||||||
su "$(id -un 1000)" -c 'git config --global user.email "$GIT_EMAIL"'
|
su "$(id -un 1000)" -c "git config --global user.email '$GIT_EMAIL'"
|
||||||
echo "git 用户已设置完毕"
|
echo "git 用户已设置完毕"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -58,6 +58,5 @@ ssh-agent bash
|
|||||||
if [ -d "${ENTRYPOINTD}" ]; then
|
if [ -d "${ENTRYPOINTD}" ]; then
|
||||||
find "${ENTRYPOINTD}" -type f -executable -print -exec {} \;
|
find "${ENTRYPOINTD}" -type f -executable -print -exec {} \;
|
||||||
fi
|
fi
|
||||||
RUN_CMD="exec dumb-init /usr/bin/code-server $@"
|
|
||||||
echo $RUN_CMD
|
su "$(id -un 1000)" -c "exec dumb-init /usr/bin/code-server '$@'"
|
||||||
su "$(id -un 1000)" -c $RUN_CMD
|
|
||||||
|
Reference in New Issue
Block a user