user-access/rootfs/etc/cont-init.d/03-ssh-keys
2017-06-13 15:37:47 +02:00

5 lines
157 B
Text

#!/usr/bin/with-contenv sh
if [ ! -f /var/lib/proftp/keys/ssh_rsa_key ]; then
ssh-keygen -b 2048 -t rsa -f /var/lib/proftp/keys/ssh_rsa_key -q -N ""
fi