소스 검색

Avoid repeated emails on tor failure

Bob Mottram 7 년 전
부모
커밋
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