mirror of
https://github.com/coderofsalvation/podi.git
synced 2025-12-16 03:47:45 +01:00
12 lines
372 B
Bash
Executable File
12 lines
372 B
Bash
Executable File
#!/bin/sh
|
|
if [ -z "${AUTHORIZED_KEYS}" ]; then
|
|
echo "Need your ssh public key as AUTHORIZED_KEYS env variable. Abnormal exit ..."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Populating /home/git/.ssh/authorized_keys with the value from AUTHORIZED_KEYS env variable ..."
|
|
echo "${AUTHORIZED_KEYS}" > /home/git/.ssh/authorized_keys
|
|
|
|
# Execute the CMD from the Dockerfile:
|
|
exec /usr/sbin/sshd -D -e
|