Files
my-dev-server/docker-entry-point.sh
2024-01-25 17:56:54 +08:00

17 lines
366 B
Bash
Executable File

#!/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