Dockerfiles/dev-base/bootstrap.sh

16 lines
224 B
Bash
Raw Permalink Normal View History

2019-04-17 05:13:13 +00:00
#!/bin/bash
# reset root password
if [[ -z "${SSH_PASS}" ]]; then
export SSH_PASS=password
fi
2019-04-17 07:23:25 +00:00
echo -e "${SSH_PASS}\n${SSH_PASS}" | passwd
2019-04-17 05:13:13 +00:00
# start sshd service
/etc/init.d/ssh start
# do nothing but wait
sleep infinity