Explorar el Código

Avoid repeated emails on tor failure

Bob Mottram hace 6 años
padre
commit
dc73d01410
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/freedombone-utils-onion

+ 1
- 1
src/freedombone-utils-onion Ver fichero

@@ -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