mirror of
https://github.com/appleboy/drone-scp.git
synced 2026-06-04 10:15:05 +08:00
5f176416d7
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
14 lines
285 B
Bash
Executable File
14 lines
285 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -f "/etc/ssh/ssh_host_rsa_key" ]; then
|
|
# generate fresh rsa key
|
|
ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
|
|
fi
|
|
|
|
if [ ! -f "/etc/ssh/ssh_host_dsa_key" ]; then
|
|
# generate fresh dsa key
|
|
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
|
|
fi
|
|
|
|
exec "$@"
|