user-access/rootfs/etc/cont-init.d/02-dhparam

5 lines
156 B
Text

#!/usr/bin/with-contenv sh
if [ ! -f /etc/proftpd/keys/dhparams.pem ]; then
openssl dhparam -outform PEM -5 nbits >> /etc/proftpd/keys/dhparams.pem
fi