瀏覽代碼

Avoid repeated emails on tor failure

Bob Mottram 6 年之前
父節點
當前提交
dc73d01410
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/freedombone-utils-onion

+ 1
- 1
src/freedombone-utils-onion 查看文件

@@ -322,8 +322,8 @@ function check_tor_health {
322 322
       echo '    fi';
323 323
       echo '    exit 0';
324 324
       echo 'fi';
325
-      echo "tail -n 3 /var/log/tor/notices.log | mail -s \"[${PROJECT_NAME}] Tor status is \$status\" \$ADMIN_USER@\$HOSTNAME";
326 325
       echo 'if [ ! -f /tmp/.torfailed ]; then';
326
+      echo "    tail -n 3 /var/log/tor/notices.log | mail -s \"[${PROJECT_NAME}] Tor status is \$status\" \$ADMIN_USER@\$HOSTNAME";
327 327
       echo '    touch /tmp/.torfailed';
328 328
       echo 'fi'; } > /usr/bin/check_tor_health
329 329
     chmod +x /usr/bin/check_tor_health