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

6 lines
157 B
Plaintext

#!/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