Sfoglia il codice sorgente

Don't configure ssh if it isn't installed

Bob Mottram 8 anni fa
parent
commit
cdfaa8cca7
No account linked to committer's email
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      src/freedombone-image-customise

+ 4
- 0
src/freedombone-image-customise Vedi File

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