diff --git a/my_init.d/000_before_regen_ssh_host_keys.sh b/my_init.d/000_before_regen_ssh_host_keys.sh index 7a65865..b9cb50c 100755 --- a/my_init.d/000_before_regen_ssh_host_keys.sh +++ b/my_init.d/000_before_regen_ssh_host_keys.sh @@ -1,5 +1,6 @@ #!/bin/bash if [[ ! -e /etc/service/sshd/down && ! -e /home/box/etc/ssh/sshd_config ]] || [[ "$1" == "-f" ]]; then + mkdir -p /home/box/etc/ssh/ cp -R /etc/ssh.default/* /home/box/etc/ssh/ fi \ No newline at end of file