11 lines
157 B
Bash
11 lines
157 B
Bash
set -e
|
|
|
|
echo "ubuntu:${SECRET}" | chpasswd
|
|
|
|
usermod -aG sudo ubuntu
|
|
|
|
mkdir /run/sshd
|
|
/sbin/sshd -o "PasswordAuthentication=yes"
|
|
|
|
exec gosu ubuntu:ubuntu $@
|