Good day,
IPADDRESSNUM option is broken at the moment (Debian Stretch). No matter
what you enter as a value,
apticron prints all IP addresses configured on all interfaces.
Here's a patch to fix that:
--- /usr/sbin/apticron.orig 2018-01-26 12:26:28.922306275 +0100
+++ /usr/sbin/apticron 2018-01-26 12:43:41.301300387 +0100
@@ -82,8 +82,7 @@
if [ -z "$IPADDRESSES" ] && [ -x /sbin/ip ]; then
# Set the IPv4 addresses
- IPADDRESSES=`(echo $( /bin/hostname --all-ip-addresses ) ;
- /sbin/ip -f inet addr show scope global 2> /dev/null | \
+ IPADDRESSES=`(/sbin/ip -f inet addr show scope global 2> /dev/null | \
/bin/grep "scope global" |\
/usr/bin/head -$IPADDRESSNUM |\
/usr/bin/awk '{ print $2 }' |\
--
Krzysztof Raczkowski
[email protected]