Skip to content

Commit

Permalink
Create SSH configuration directory if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Toilal committed Apr 3, 2015
1 parent e24ae5e commit db29cd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions my_init.d/000_before_regen_ssh_host_keys.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit db29cd2

Please sign in to comment.