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