feat: test
This commit is contained in:
16
docker-entry-point.sh
Executable file
16
docker-entry-point.sh
Executable 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
|
Reference in New Issue
Block a user