Run dropbear only if they have a known_hosts

This commit is contained in:
Pascal Vizeli
2018-06-25 08:55:16 +02:00
committed by GitHub
parent 8434f3ee55
commit cc80265997

View File

@@ -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
##