Rsync/CGI server for adaptive purposes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/sh |
|
|
|
# Regenerate ssh key per container |
|
|
|
if [ ! -f "/etc/ssh/keys/ssh_host_rsa_key" ]; then |
|
# Regen keys |
|
ssh-keygen -A |
|
|
|
# Move keys to keys dir |
|
mkdir -p /data/keys/ |
|
mv /etc/ssh/ssh_host_* /data/keys/ |
|
fi |
|
|
|
rm /start.d/gen-ssh
|
|
|