From: mhoellein Date: Fri, 26 Oct 2018 14:51:44 +0000 (+0200) Subject: committing changes in /etc after apt run X-Git-Url: https://git.hoellein.online/?a=commitdiff_plain;h=73b95b970ff20f27c699a6d1758fba381d191a9c;p=homeserver committing changes in /etc after apt run Package changes: +python3-debconf 1.5.66 all +python3-distro-info 0.18 all +python3-distupgrade 1:18.04.27 all +python3-update-manager 1:18.04.11.6 all +ttf-mscorefonts-installer 3.6ubuntu2 all +ubuntu-release-upgrader-core 1:18.04.27 all +update-manager-core 1:18.04.11.6 all +update-notifier-common 3.192.1.3 all --- diff --git a/.etckeeper b/.etckeeper index e1f122e7..1aacf1b9 100755 --- a/.etckeeper +++ b/.etckeeper @@ -66,6 +66,8 @@ mkdir -p './smartmontools/smartd_warning.d' mkdir -p './systemd/user' mkdir -p './udev/hwdb.d' mkdir -p './ufw/applications.d/apache2' +mkdir -p './update-manager/release-upgrades.d' +mkdir -p './update-notifier' mkdir -p './usb_modeswitch.d' maybe chmod 0755 '.' maybe chmod 0700 '.etckeeper' @@ -738,12 +740,16 @@ maybe chmod 0644 'apt/apt.conf.d/01-vendor-ubuntu' maybe chmod 0644 'apt/apt.conf.d/01autoremove' maybe chmod 0444 'apt/apt.conf.d/01autoremove-kernels' maybe chmod 0644 'apt/apt.conf.d/05etckeeper' +maybe chmod 0644 'apt/apt.conf.d/10periodic' +maybe chmod 0644 'apt/apt.conf.d/15update-stamp' +maybe chmod 0644 'apt/apt.conf.d/20archive' maybe chmod 0644 'apt/apt.conf.d/20auto-upgrades' maybe chmod 0644 'apt/apt.conf.d/20dbus' maybe chmod 0644 'apt/apt.conf.d/25loolwsd' maybe chmod 0644 'apt/apt.conf.d/50command-not-found' maybe chmod 0644 'apt/apt.conf.d/50unattended-upgrades' maybe chmod 0644 'apt/apt.conf.d/70debconf' +maybe chmod 0644 'apt/apt.conf.d/99update-notifier' maybe chmod 0755 'apt/preferences.d' maybe chmod 0644 'apt/preferences.d/fglrx.13.350.pref' maybe chmod 0644 'apt/preferences.d/official-extra-repositories.pref' @@ -2007,6 +2013,7 @@ maybe chmod 0755 'cron.daily/passwd' maybe chmod 0755 'cron.daily/samba' maybe chmod 0755 'cron.daily/spamassassin' maybe chmod 0755 'cron.daily/ubuntu-advantage-tools' +maybe chmod 0755 'cron.daily/update-notifier-common' maybe chmod 0755 'cron.daily/upstart' maybe chmod 0755 'cron.hourly' maybe chmod 0644 'cron.hourly/.placeholder' @@ -2019,6 +2026,7 @@ maybe chmod 0755 'cron.weekly/0anacron' maybe chmod 0755 'cron.weekly/apt-xapian-index' maybe chmod 0755 'cron.weekly/man-db' maybe chmod 0755 'cron.weekly/tor' +maybe chmod 0755 'cron.weekly/update-notifier-common' maybe chmod 0644 'crontab' maybe chmod 0755 'cruft' maybe chmod 0755 'cruft/filters-unex' @@ -4627,12 +4635,22 @@ maybe chmod 0644 'ufw/sysctl.conf' maybe chmod 0644 'ufw/ufw.conf' maybe chmod 0640 'ufw/user.rules' maybe chmod 0640 'ufw/user6.rules' +maybe chmod 0755 'update-manager' +maybe chmod 0644 'update-manager/meta-release' +maybe chmod 0644 'update-manager/release-upgrades' +maybe chmod 0755 'update-manager/release-upgrades.d' maybe chmod 0755 'update-motd.d' maybe chmod 0755 'update-motd.d/00-header' maybe chmod 0755 'update-motd.d/10-help-text' maybe chmod 0755 'update-motd.d/50-motd-news' maybe chmod 0755 'update-motd.d/80-esm' maybe chmod 0755 'update-motd.d/80-livepatch' +maybe chmod 0755 'update-motd.d/90-updates-available' +maybe chmod 0755 'update-motd.d/91-release-upgrade' +maybe chmod 0755 'update-motd.d/95-hwe-eol' +maybe chmod 0755 'update-motd.d/98-fsck-at-reboot' +maybe chmod 0755 'update-motd.d/98-reboot-required' +maybe chmod 0755 'update-notifier' maybe chmod 0644 'updatedb.conf' maybe chmod 0644 'upstart-xsessions' maybe chmod 0755 'upstream-release' diff --git a/apt/apt.conf.d/10periodic b/apt/apt.conf.d/10periodic new file mode 100644 index 00000000..d1922e34 --- /dev/null +++ b/apt/apt.conf.d/10periodic @@ -0,0 +1,3 @@ +APT::Periodic::Update-Package-Lists "1"; +APT::Periodic::Download-Upgradeable-Packages "0"; +APT::Periodic::AutocleanInterval "0"; diff --git a/apt/apt.conf.d/15update-stamp b/apt/apt.conf.d/15update-stamp new file mode 100644 index 00000000..14ead837 --- /dev/null +++ b/apt/apt.conf.d/15update-stamp @@ -0,0 +1 @@ +APT::Update::Post-Invoke-Success {"touch /var/lib/apt/periodic/update-success-stamp 2>/dev/null || true";}; diff --git a/apt/apt.conf.d/20archive b/apt/apt.conf.d/20archive new file mode 100644 index 00000000..a2ad262f --- /dev/null +++ b/apt/apt.conf.d/20archive @@ -0,0 +1,3 @@ +APT::Archives::MaxAge "30"; +APT::Archives::MinAge "2"; +APT::Archives::MaxSize "500"; diff --git a/apt/apt.conf.d/99update-notifier b/apt/apt.conf.d/99update-notifier new file mode 100644 index 00000000..21acb0ce --- /dev/null +++ b/apt/apt.conf.d/99update-notifier @@ -0,0 +1,2 @@ +DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; /usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";}; +APT::Update::Post-Invoke-Success {"/usr/lib/update-notifier/update-motd-updates-available 2>/dev/null || true";}; diff --git a/cron.daily/update-notifier-common b/cron.daily/update-notifier-common new file mode 100755 index 00000000..e90d1537 --- /dev/null +++ b/cron.daily/update-notifier-common @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +[ -x /usr/lib/update-notifier/package-data-downloader ] || exit 0 + +# Try to rerun any package data downloads that failed at package install time. +/usr/lib/update-notifier/package-data-downloader diff --git a/cron.weekly/update-notifier-common b/cron.weekly/update-notifier-common new file mode 100755 index 00000000..07b890c7 --- /dev/null +++ b/cron.weekly/update-notifier-common @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +[ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ] || exit 0 + +# Check to see whether there is a new version of Ubuntu available +/usr/lib/ubuntu-release-upgrader/release-upgrade-motd diff --git a/kernel/postinst.d/update-notifier b/kernel/postinst.d/update-notifier new file mode 120000 index 00000000..e34356ca --- /dev/null +++ b/kernel/postinst.d/update-notifier @@ -0,0 +1 @@ +/usr/share/update-notifier/notify-reboot-required \ No newline at end of file diff --git a/update-manager/meta-release b/update-manager/meta-release new file mode 100644 index 00000000..0793c9e5 --- /dev/null +++ b/update-manager/meta-release @@ -0,0 +1,7 @@ +# default location for the meta-release file + +[METARELEASE] +URI = https://changelogs.ubuntu.com/meta-release +URI_LTS = https://changelogs.ubuntu.com/meta-release-lts +URI_UNSTABLE_POSTFIX = -development +URI_PROPOSED_POSTFIX = -proposed diff --git a/update-manager/release-upgrades b/update-manager/release-upgrades new file mode 100644 index 00000000..94d2fae5 --- /dev/null +++ b/update-manager/release-upgrades @@ -0,0 +1,17 @@ +# Default behavior for the release upgrader. + +[DEFAULT] +# Default prompting behavior, valid options: +# +# never - Never check for a new release. +# normal - Check to see if a new release is available. If more than one new +# release is found, the release upgrader will attempt to upgrade to +# the release that immediately succeeds the currently-running +# release. +# lts - Check to see if a new LTS release is available. The upgrader +# will attempt to upgrade to the first LTS release available after +# the currently-running one. Note that this option should not be +# used if the currently-running release is not itself an LTS +# release, since in that case the upgrader won't be able to +# determine if a newer release is available. +Prompt=lts diff --git a/update-motd.d/90-updates-available b/update-motd.d/90-updates-available new file mode 100755 index 00000000..404b8893 --- /dev/null +++ b/update-motd.d/90-updates-available @@ -0,0 +1,5 @@ +#!/bin/sh + +stamp="/var/lib/update-notifier/updates-available" + +[ ! -r "$stamp" ] || cat "$stamp" diff --git a/update-motd.d/91-release-upgrade b/update-motd.d/91-release-upgrade new file mode 100755 index 00000000..f00f4894 --- /dev/null +++ b/update-motd.d/91-release-upgrade @@ -0,0 +1,9 @@ +#!/bin/sh + +# if the current release is under development there won't be a new one +if [ "$(lsb_release -sd | cut -d' ' -f4)" = "(development" ]; then + exit 0 +fi +if [ -x /usr/lib/ubuntu-release-upgrader/release-upgrade-motd ]; then + exec /usr/lib/ubuntu-release-upgrader/release-upgrade-motd +fi diff --git a/update-motd.d/95-hwe-eol b/update-motd.d/95-hwe-eol new file mode 100755 index 00000000..3b4bd133 --- /dev/null +++ b/update-motd.d/95-hwe-eol @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -x /usr/lib/update-notifier/update-motd-hwe-eol ]; then + exec /usr/lib/update-notifier/update-motd-hwe-eol +fi diff --git a/update-motd.d/98-fsck-at-reboot b/update-motd.d/98-fsck-at-reboot new file mode 100755 index 00000000..e5ec39e5 --- /dev/null +++ b/update-motd.d/98-fsck-at-reboot @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -x /usr/lib/update-notifier/update-motd-fsck-at-reboot ]; then + exec /usr/lib/update-notifier/update-motd-fsck-at-reboot +fi \ No newline at end of file diff --git a/update-motd.d/98-reboot-required b/update-motd.d/98-reboot-required new file mode 100755 index 00000000..e86de0ba --- /dev/null +++ b/update-motd.d/98-reboot-required @@ -0,0 +1,5 @@ +#!/bin/sh + +if [ -x /usr/lib/update-notifier/update-motd-reboot-required ]; then + exec /usr/lib/update-notifier/update-motd-reboot-required +fi \ No newline at end of file