mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 02:20:51 +01:00
Use host keys from the config directory if they exist, instead of
regenerating them. Make the script handle relative paths for the source directory.
This commit is contained in:
parent
e46899fcdb
commit
9bbeaf002b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84627
@ -568,7 +568,11 @@ populate_mfs_tree() {
|
||||
|
||||
if [ -f ${dst}/stand/sshd ] ; then
|
||||
log "Creating host key for sshd"
|
||||
ssh-keygen -f ${dst}/etc/ssh_host_key -N "" -C "root@picobsd"
|
||||
if [ -f ${dst}/etc/ssh_host_key ] ; then
|
||||
log "Using existing host key"
|
||||
else
|
||||
ssh-keygen -f ${dst}/etc/ssh_host_key -N "" -C "root@picobsd"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -d ${MY_TREE}/mfs_tree ]; then
|
||||
@ -806,7 +810,7 @@ set_defaults
|
||||
while [ true ]; do
|
||||
case $1 in
|
||||
--src) # set the source path instead of /usr/src
|
||||
SRC=$2
|
||||
SRC=`(cd $2; pwd)`
|
||||
shift
|
||||
;;
|
||||
--init)
|
||||
|
Loading…
Reference in New Issue
Block a user