Selaa lähdekoodia

One additional mesh sync

Bob Mottram 8 vuotta sitten
vanhempi
commit
a51e5fa39e
No account linked to committer's email
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1
    1
      src/freedombone-app-tox
  2. 2
    1
      src/freedombone-app-zeronet

+ 1
- 1
src/freedombone-app-tox Näytä tiedosto

588
 
588
 
589
     if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
589
     if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
590
         echo "*/1            * *   *   *   root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab
590
         echo "*/1            * *   *   *   root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab
591
-        echo "*/1            * *   *   *   root ( sleep 30 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
591
+        echo "*/1            * *   *   *   root ( sleep 20 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/cro        echo "*/1            * *   *   *   root ( sleep 40 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
592
     fi
592
     fi
593
 }
593
 }
594
 
594
 

+ 2
- 1
src/freedombone-app-zeronet Näytä tiedosto

563
 
563
 
564
     if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
564
     if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
565
         echo "*/1            * *   *   *   root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab
565
         echo "*/1            * *   *   *   root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab
566
-        echo "*/1            * *   *   *   root ( sleep 30 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
566
+        echo "*/1            * *   *   *   root ( sleep 20 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
567
+        echo "*/1            * *   *   *   root ( sleep 40 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
567
     fi
568
     fi
568
 
569
 
569
     chroot "$rootdir" systemctl enable tracker.service
570
     chroot "$rootdir" systemctl enable tracker.service