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

This commit is contained in:
Bob Mottram 2016-08-09 22:29:15 +01:00
parent 8e8cb6ed56
commit 81896f2be9
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 4 additions and 4 deletions

View File

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

View File

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