From db29cd2983d027e48baf1807cb6c4a2fb56763dd Mon Sep 17 00:00:00 2001 From: Toilal Date: Fri, 3 Apr 2015 14:27:35 +0200 Subject: [PATCH] Create SSH configuration directory if not exists --- my_init.d/000_before_regen_ssh_host_keys.sh | 1 + 1 file changed, 1 insertion(+) 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