Przeglądaj źródła

Send to /dev/null to avoid writing things to disk

Bob Mottram 9 lat temu
rodzic
commit
81896f2be9
Brak konta powiązanego z e-mailem autora
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 2
    2
      src/freedombone-app-tox
  2. 2
    2
      src/freedombone-app-zeronet

+ 2
- 2
src/freedombone-app-tox Wyświetl plik

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

+ 2
- 2
src/freedombone-app-zeronet Wyświetl plik

562
     chmod +x $MESH_SYNC_COMMAND
562
     chmod +x $MESH_SYNC_COMMAND
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" >> ${rootdir}/etc/crontab
566
-        echo "*/1            * *   *   *   root ( sleep 30 ; /usr/bin/mesh-sync )" >> ${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
567
     fi
567
     fi
568
 
568
 
569
     chroot "$rootdir" systemctl enable tracker.service
569
     chroot "$rootdir" systemctl enable tracker.service