From 81896f2be9332516c91156942cf38f3f84b444f3 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 9 Aug 2016 22:29:15 +0100 Subject: [PATCH] Send to /dev/null to avoid writing things to disk --- src/freedombone-app-tox | 4 ++-- src/freedombone-app-zeronet | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index 61e11792..0ca1cce3 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -586,8 +586,8 @@ EOF chmod +x $MESH_SYNC_COMMAND if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then - echo "*/1 * * * * root /usr/bin/mesh-sync" >> ${rootdir}/etc/crontab - echo "*/1 * * * * root ( sleep 30 ; /usr/bin/mesh-sync )" >> ${rootdir}/etc/crontab + echo "*/1 * * * * root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab + echo "*/1 * * * * root ( sleep 30 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab fi } diff --git a/src/freedombone-app-zeronet b/src/freedombone-app-zeronet index b87440df..ae309737 100755 --- a/src/freedombone-app-zeronet +++ b/src/freedombone-app-zeronet @@ -562,8 +562,8 @@ function mesh_zeronet { chmod +x $MESH_SYNC_COMMAND if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then - echo "*/1 * * * * root /usr/bin/mesh-sync" >> ${rootdir}/etc/crontab - echo "*/1 * * * * root ( sleep 30 ; /usr/bin/mesh-sync )" >> ${rootdir}/etc/crontab + echo "*/1 * * * * root /usr/bin/mesh-sync 2> /dev/null" >> ${rootdir}/etc/crontab + echo "*/1 * * * * root ( sleep 30 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab fi chroot "$rootdir" systemctl enable tracker.service