Dockerfiles/dev-base/bootstrap.sh
2019-04-17 15:23:25 +08:00

16 lines
224 B
Bash
Executable File

#!/bin/bash
# reset root password
if [[ -z "${SSH_PASS}" ]]; then
export SSH_PASS=password
fi
echo -e "${SSH_PASS}\n${SSH_PASS}" | passwd
# start sshd service
/etc/init.d/ssh start
# do nothing but wait
sleep infinity