更新 docker-entry-point.sh

This commit is contained in:
mol
2024-01-26 09:26:18 +00:00
parent 64fa4b7d30
commit c3554807ba

View File

@ -6,13 +6,14 @@ if [ -n "$ROOT_PASSWD" ]; then
fi
if [ -n "$GIT_USER" ] && [ -n "$GIT_EMAIL" ]; then
git config --global user.name "$GIT_USER" >> /app/info.log
git config --global user.email "$GIT_EMAIL" >> /app/info.log
git config --global user.name "$GIT_USER"
git config --global user.email "$GIT_EMAIL"
git config --global core.sshCommand "/usr/bin/ssh"
echo "git 用户已设置完毕" >> /app/info.log
fi
if [ -n "$DOCKER_USER" ] && [ -n "$DOCKER_PASSWD" ]; then
docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWD" >> /app/info.log
docker login -u "$DOCKER_USER" -p "$DOCKER_PASSWD"
echo "docker 用户登录完成" >> /app/info.log
fi