浏览代码

Fix mesh crontab entries

Bob Mottram 9 年前
父节点
当前提交
2a86dc2e72
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4
    4
      src/freedombone

+ 4
- 4
src/freedombone 查看文件

@@ -1673,8 +1673,8 @@ function install_zeronet {
1673 1673
   chown -R tracker:tracker /opt/tracker
1674 1674
 
1675 1675
   # publish regularly
1676
-  if ! grep -Fxq "zeronetavahi" /etc/crontab; then
1677
-      echo "* *       * * *   root    zeronetavahi > /dev/null" >> /etc/crontab
1676
+  if ! grep -q "zeronetavahi" /etc/crontab; then
1677
+      echo "* *     * * *   root    zeronetavahi > /dev/null" >> /etc/crontab
1678 1678
   fi
1679 1679
 
1680 1680
   systemctl enable tracker.service
@@ -8212,8 +8212,8 @@ function tox_avahi {
8212 8212
   toxavahi
8213 8213
 
8214 8214
   # publish regularly
8215
-  if ! grep -Fxq "toxavahi" /etc/crontab; then
8216
-      echo "* *       * * *   root    toxavahi > /dev/null" >> /etc/crontab
8215
+  if ! grep -q "toxavahi" /etc/crontab; then
8216
+      echo "* *     * * *   root    toxavahi > /dev/null" >> /etc/crontab
8217 8217
   fi
8218 8218
 
8219 8219
   systemctl restart avahi-daemon