sshpiper/entrypoint.sh
2022-07-08 01:26:19 +00:00

12 lines
No EOL
269 B
Bash
Executable file

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