소스 검색

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