소스 검색

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

Bob Mottram 9 년 전
부모
커밋
81896f2be9
No account linked to committer's email
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    2
      src/freedombone-app-tox
  2. 2
    2
      src/freedombone-app-zeronet

+ 2
- 2
src/freedombone-app-tox 파일 보기

@@ -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 파일 보기

@@ -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