[Bug 1411371] Re: Use FQDN in apt-listchanges report
Brian Thompson
1411371 at bugs.launchpad.net
Tue Aug 17 05:04:10 UTC 2021
This looks like a very easy fix and one where I don't think there would
need to be a lot of discussion about (correct me if I am wrong). I'll
work on getting the patch ready.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt-listchanges in Ubuntu.
https://bugs.launchpad.net/bugs/1411371
Title:
Use FQDN in apt-listchanges report
Status in apt-listchanges package in Ubuntu:
New
Bug description:
Really a WISHLIST item.
I have many virtual machines running ubuntu/apache2 all with apt-
listchanges installed, all named www.domain.com. When I get my
emailed reports the subject is "apt-listchanges: changelogs for www"
for every single VM. Not very useful.
It would be fair better for the subject to be "apt-listchanges:
changelings for www.domain.com" (the FQDN for the host).
apt-listchanges uses the following python code to set the hostname for
the report
hostname = commands.getoutput('hostname')
I'd like to propose that the command be changed to
hostname = commands.getoutput('hostname -f')
Or a parameter set in /etc/apt/listchanges.conf
Yes, I could change the hostname of the VM to the FQDN but the Debian
reference <http://www.debian.org/doc/manuals/debian-
reference/ch03.en.html#_the_hostname> says the hostname should not use
the FQDN:
3.5.5. The hostname
The kernel maintains the system hostname. The init script in runlevel
S which is symlinked to "/etc/init.d/hostname.sh" sets the system
hostname at boot time (using the hostname command) to the name stored
in "/etc/hostname". This file should contain only the system hostname,
not a fully qualified domain name.
I can do the coding/work, if I get guidance.
Thanks.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt-listchanges/+bug/1411371/+subscriptions
More information about the foundations-bugs
mailing list