sshpiper/entrypoint.sh
2023-01-04 09:03:24 -08:00

12 lines
No EOL
281 B
Bash
Executable file

#!/bin/sh
set -eo pipefail
if [ -z "$SSHPIPERD_SERVER_KEY" ]; then
if [ ! -f /etc/ssh/ssh_host_ed25519_key ];then
ssh-keygen -t ed25519 -N '' -f /etc/ssh/ssh_host_ed25519_key
fi
fi
PLUGIN=${PLUGIN:-workingdir}
exec /sshpiperd/sshpiperd /sshpiperd/plugins/$PLUGIN