Have simple-init regenerate ssh keys on boot
If the keys aren't there on boot, we want to generate them. Change-Id: I84d185887007d501306fe22731dd073e62fdfe36
This commit is contained in:
parent
d8ff69957e
commit
53a57e8713
@ -41,6 +41,9 @@ if blkid -t LABEL="config-2" ; then
|
|||||||
/usr/local/bin/glean --ssh --skip-network
|
/usr/local/bin/glean --ssh --skip-network
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -f /usr/bin/dpkg ] ; then
|
||||||
|
test -f /etc/ssh/ssh_host_rsa_key || dpkg-reconfigure openssh-server
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -n "$INTERFACE" ]; then
|
if [ -n "$INTERFACE" ]; then
|
||||||
/usr/local/bin/glean --interface $INTERFACE
|
/usr/local/bin/glean --interface $INTERFACE
|
||||||
|
Loading…
Reference in New Issue
Block a user