mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Run dropbear only if they have a known_hosts
This commit is contained in:
parent
8434f3ee55
commit
cc80265997
@ -37,6 +37,11 @@ if [ -f /mnt/config/known_hosts ]; then
|
||||
|
||||
cp -f /mnt/config/known_hosts /root/.ssh/known_hosts
|
||||
chmod 600 /root/.ssh/known_hosts
|
||||
|
||||
systemctl start dropbear
|
||||
else
|
||||
rm -f /root/.ssh/known_hosts
|
||||
systemctl stop dropbear
|
||||
fi
|
||||
|
||||
##
|
||||
|
Loading…
x
Reference in New Issue
Block a user