Skip to content

-n option does not disable email notification on update #592

Open
@mkhazov

Description

@mkhazov

I use -n option in crontab to disable email notifications:

00 4 * * * /usr/local/sbin/update-ngxblocker -n

However, every day I receive an email sent to root@mydomain.com:

Cron <root@myserver> /usr/local/sbin/update-ngxblocker -n

LOCAL Version:  [1m [37m4.2024.11.4862 [0m
Updated: Thu Nov  7 22:01:08 UTC 2024

REMOTE Version:  [1m [37m4.2024.11.4864 [0m
Updated: Fri Nov  8 22:01:20 UTC 2024

Update Available =>  [1m [35m4.2024.11.4864 [0m

 [1m [37mDownloading: globalblacklist.conf ... [1m [32m[OK] [0m

...

Expected behavior

No email notifications after an update.

Server (please complete the following information):

  • Operating System:

  • Ubuntu

  • Specify Exact Version of OS:

Ubuntu 20.04.6 LTS
Linux 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

  • Nginx Version [post output of sudo nginx -v]

 nginx/1.24.0

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions