feat: test

This commit is contained in:
mol
2024-01-26 01:54:29 +00:00
parent b15abd54d8
commit 471d3ce0fc
3 changed files with 67 additions and 25 deletions

View File

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