Fix mesh crontab entries

This commit is contained in:
Bob Mottram 2015-09-01 11:14:39 +01:00
parent 195735cc51
commit 2a86dc2e72
1 changed files with 4 additions and 4 deletions

View File

@ -1673,8 +1673,8 @@ function install_zeronet {
chown -R tracker:tracker /opt/tracker
# publish regularly
if ! grep -Fxq "zeronetavahi" /etc/crontab; then
echo "* * * * * root zeronetavahi > /dev/null" >> /etc/crontab
if ! grep -q "zeronetavahi" /etc/crontab; then
echo "* * * * * root zeronetavahi > /dev/null" >> /etc/crontab
fi
systemctl enable tracker.service
@ -8212,8 +8212,8 @@ function tox_avahi {
toxavahi
# publish regularly
if ! grep -Fxq "toxavahi" /etc/crontab; then
echo "* * * * * root toxavahi > /dev/null" >> /etc/crontab
if ! grep -q "toxavahi" /etc/crontab; then
echo "* * * * * root toxavahi > /dev/null" >> /etc/crontab
fi
systemctl restart avahi-daemon