浏览代码

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

Bob Mottram 9 年前
父节点
当前提交
81896f2be9
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2
    2
      src/freedombone-app-tox
  2. 2
    2
      src/freedombone-app-zeronet

+ 2
- 2
src/freedombone-app-tox 查看文件

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 查看文件

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