Your message dated Sun, 6 Sep 2015 22:10:47 +0200
with message-id
<CABY6=0nfqUs25Zi0_U6W7_uCDwYRnMSFjjnzxCc=owts2tj...@mail.gmail.com>
and subject line Re: Bug#796188: cron-apt: No email reports
has caused the Debian Bug report #796188,
regarding cron-apt: No email reports
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
796188: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796188
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cron-apt
Version: 0.9.2
Severity: normal
Hi,
Here is my config file (/etc/cron-apt/config.d/config):
#####################################
APTCOMMAND=/usr/bin/apt-get
OPTIONS="-o quiet=1 -o Dir::Etc::SourceList=/etc/apt/sources.list"
MAILTO="admin@[…]"
MAILON="always"
#####################################
So I expected to get an email every time cron-apt is run. But I only
receive one when there is a problem while running apt-get.
Thanks,
Cyril
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.16.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages cron-apt depends on:
ii apt 1.0.9.8
Versions of packages cron-apt recommends:
ii bsd-mailx [mailx] 8.1.2-0.20141216cvs-2
ii cron 3.0pl1-127
ii liblockfile1 1.09-6
cron-apt suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi
Sorry for late reply but I think I understand what is wrong now.
I checked the code and could not find the reason why it would go wrong. So
I had a look at your first mail and I see that you have placed this data in
the wrong file.
You have placed it in /etc/cron-apt/config.d/config
This file is only triggered for an action named "config".
This is documented in the README file.
----
It is also possible to add extra configuration for each action (same syntax
as
/etc/cron-apt/config) by naming the file
/etc/cron-apt/config.d/<actionname>.
The configuration from one action is kept to the next action as well.
----
You need to put it in /etc/cron-apt/config instead.
I'm closing this bug now.
Best regards,
// Ola
On Fri, Aug 28, 2015 at 9:56 AM, Pelmato <[email protected]> wrote:
> Yes, that's it!
>
> A few days ago, I tryed to change the 0-update to be more verbose
> (quiet=1). But I haven't received anything.
>
> Moreover, I thought that MAILON can have "output" or "always" as value.
> When configured with "always" I should get an email even if no output was
> generated.
>
>
>
> Le 2015-08-27 22:35, Ola Lundqvist a écrit :
>
> Hi
>
> Only if something is actually upgraded. But you say that you only get it
> at failures, or?
>
> // Ola
>
> On Thu, Aug 20, 2015 at 11:08 AM, Pelmato <[email protected]>
> wrote:
>
>> I have the 3 following files in action.d:
>>
>> /etc/cron-apt/action.d/0-update:
>> #############################
>> update -o quiet=2
>> #############################
>>
>> /etc/cron-apt/action.d/3-download:
>> #############################
>> autoclean -y
>> dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
>> #############################
>>
>> /etc/cron-apt/action.d/5-install:
>> #############################
>> dist-upgrade -y -o APT::Get::Show-Upgraded=true
>> #############################
>>
>> The 0-updates file indeed use the "quiet=2" and apt doesn't print
>> anything (which is fine). But for the 2 other files apt should output
>> something. Shouldn't it?
>>
>
>
--
--- Inguza Technology AB --- MSc in Information Technology ----
/ [email protected] Annebergsslingan 37 \
| [email protected] 654 65 KARLSTAD |
| http://inguza.com/ Mobile: +46 (0)70-332 1551 |
\ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 /
---------------------------------------------------------------
--- End Message ---