Don't configure ssh if it isn't installed
This commit is contained in:
parent
8200a26528
commit
cdfaa8cca7
|
@ -246,6 +246,10 @@ following commands, then enter your details.
|
|||
}
|
||||
|
||||
configure_ssh() {
|
||||
if [[ $VARIANT == "mesh" || $VARIANT == "meshclient" || $VARIANT != "meshusb" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
sed -i "s/Port .*/Port ${SSH_PORT}/g" $rootdir/etc/ssh/sshd_config
|
||||
|
||||
if [[ "$SSH_PUBKEY" != "no" ]]; then
|
||||
|
|
Loading…
Reference in New Issue