Przeglądaj źródła

Don't configure ssh if it isn't installed

Bob Mottram 8 lat temu
rodzic
commit
cdfaa8cca7
Brak konta powiązanego z e-mailem autora
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      src/freedombone-image-customise

+ 4
- 0
src/freedombone-image-customise Wyświetl plik

@@ -246,6 +246,10 @@ following commands, then enter your details.
246 246
 }
247 247
 
248 248
 configure_ssh() {
249
+    if [[ $VARIANT == "mesh" || $VARIANT == "meshclient" || $VARIANT != "meshusb" ]]; then
250
+        return
251
+    fi
252
+
249 253
     sed -i "s/Port .*/Port ${SSH_PORT}/g" $rootdir/etc/ssh/sshd_config
250 254
 
251 255
     if [[ "$SSH_PUBKEY" != "no" ]]; then