Don't configure ssh if it isn't installed

This commit is contained in:
Bob Mottram 2016-08-11 22:37:53 +01:00
parent 8200a26528
commit cdfaa8cca7
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 4 additions and 0 deletions

View File

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