feat: test

This commit is contained in:
mol
2024-01-25 17:56:54 +08:00
parent 7841092515
commit b15abd54d8
2 changed files with 43 additions and 17 deletions

16
docker-entry-point.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
if [ -n "$ROOT_PASSWD" ]; then
echo "root:${ROOT_PASSWD}" | chpasswd
echo "密码设置完毕" >> /app/info.log
fi
if [ -n "$GIT_USER" ] && [ -n "$GIT_EMAIL" ]; then
git config --global user.name "$GIT_USER"
git config --global user.email "$GIT_EMAIL"
echo "git 用户已设置完毕" >> /app/info.log
fi
service ssh start
tail -f /app/info.log