Browse Source

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

Bob Mottram 8 years ago
parent
commit
81896f2be9
No account linked to committer's email
2 changed files with 4 additions and 4 deletions
  1. 2
    2
      src/freedombone-app-tox
  2. 2
    2
      src/freedombone-app-zeronet

+ 2
- 2
src/freedombone-app-tox View File

@@ -586,8 +586,8 @@ EOF
586 586
     chmod +x $MESH_SYNC_COMMAND
587 587
 
588 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 591
     fi
592 592
 }
593 593
 

+ 2
- 2
src/freedombone-app-zeronet View File

@@ -562,8 +562,8 @@ function mesh_zeronet {
562 562
     chmod +x $MESH_SYNC_COMMAND
563 563
 
564 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 567
     fi
568 568
 
569 569
     chroot "$rootdir" systemctl enable tracker.service