Files
interview/entrypoint.sh
2025-05-16 22:11:10 +03:00

13 lines
195 B
Bash

set -e
# set password
echo "ubuntu:${SECRET}" | chpasswd
mkdir /run/sshd
/sbin/sshd -o "PasswordAuthentication=yes"
# add ubuntu to groups
usermod -aG sudo ubuntu
exec gosu ubuntu:ubuntu $@