docker-ubuntu/startup.sh
2015-05-12 19:04:20 +08:00

12 lines
329 B
Bash
Executable file

#!/bin/bash
mkdir -p /var/run/sshd
# create an ubuntu user
# PASS=`pwgen -c -n -1 10`
PASS=ubuntu
# echo "Username: ubuntu Password: $PASS"
id -u ubuntu &>/dev/null || useradd --create-home --shell /bin/bash --user-group --groups adm,sudo ubuntu
echo "ubuntu:$PASS" | chpasswd
/usr/bin/supervisord -c /etc/supervisord.conf -n