mirror of
https://github.com/unraid/webgui.git
synced 2026-02-19 15:39:32 -06:00
scripts dutchification - batch 1
This commit is contained in:
@@ -45,11 +45,11 @@ sshd_start(){
|
||||
# make sure ssh dir exists on flash
|
||||
mkdir -p $SSH_BOOT
|
||||
# restore saved keys, config file, etc. (but not subdirs)
|
||||
cp $SSH_BOOT/* $SSH_ETC &>/dev/null
|
||||
chmod 600 $SSH_ETC/* &>/dev/null
|
||||
cp -f $SSH_BOOT/* $SSH_ETC 2>/dev/null
|
||||
chmod 600 $SSH_ETC/* 2>/dev/null
|
||||
# create host keys if needed and copy any newly generated key(s) back to flash
|
||||
ssh-keygen -A
|
||||
cp -n $SSH_ETC/ssh_host*_key* $SSH_BOOT/
|
||||
cp -n $SSH_ETC/ssh_host*_key* $SSH_BOOT/ 2>/dev/null
|
||||
# build configuration
|
||||
sshd_build
|
||||
# start daemon
|
||||
|
||||
Reference in New Issue
Block a user