Personal docker image setups for Knot/Spindle
1#!/usr/bin/execlineb -P
2
3foreground {
4 if -n { test -d /etc/ssh/keys }
5 mkdir /etc/ssh/keys
6}
7
8foreground {
9 if -n { test -f /etc/ssh/keys/ssh_host_rsa_key }
10 ssh-keygen -t rsa -f /etc/ssh/keys/ssh_host_rsa_key -q -N ""
11}
12
13foreground {
14 if -n { test -f /etc/ssh/keys/ssh_host_ecdsa_key }
15 ssh-keygen -t rsa -f /etc/ssh/keys/ssh_host_ecdsa_key -q -N ""
16}
17
18foreground {
19 if -n { test -f /etc/ssh/keys/ssh_host_ed25519_key }
20 ssh-keygen -t rsa -f /etc/ssh/keys/ssh_host_ed25519_key -q -N ""
21}