One additional mesh sync

This commit is contained in:
Bob Mottram 2016-08-10 22:41:14 +01:00
parent 286e4bd895
commit a51e5fa39e
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 3 additions and 2 deletions

View File

@ -588,7 +588,7 @@ EOF
if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
echo "*/1 * * * * root /usr/bin/mesh-sync 2> /dev/null" >> ${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 echo "*/1 * * * * root ( sleep 20 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/cro echo "*/1 * * * * root ( sleep 40 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
fi fi
} }

View File

@ -563,7 +563,8 @@ function mesh_zeronet {
if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then if ! grep -q "mesh-sync" ${rootdir}/etc/crontab; then
echo "*/1 * * * * root /usr/bin/mesh-sync 2> /dev/null" >> ${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 echo "*/1 * * * * root ( sleep 20 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
echo "*/1 * * * * root ( sleep 40 ; /usr/bin/mesh-sync 2> /dev/null )" >> ${rootdir}/etc/crontab
fi fi
chroot "$rootdir" systemctl enable tracker.service chroot "$rootdir" systemctl enable tracker.service