From: Frank Brehm Date: Mon, 4 May 2020 08:58:49 +0000 (+0200) Subject: committing changes in /etc after apt run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=24df6b9298a7452fdd3c7050db2324e59cb41fd8;p=config%2Fbruni%2Fetc-mint-new1.git committing changes in /etc after apt run Package changes: +python3-debconf 1.5.66ubuntu1 all +python3-distro-info 0.18ubuntu0.18.04.1 all +python3-distupgrade 1:18.04.37 all +python3-update-manager 1:18.04.11.12 all +ubuntu-release-upgrader-core 1:18.04.37 all +update-manager-core 1:18.04.11.12 all +update-motd 3.6-0ubuntu1 all +update-notifier-common 3.192.1.7 all --- diff --git a/.etckeeper b/.etckeeper index 43fabee..e0d779c 100755 --- a/.etckeeper +++ b/.etckeeper @@ -66,6 +66,8 @@ mkdir -p './smartmontools/smartd_warning.d' mkdir -p './systemd/network' mkdir -p './systemd/user' mkdir -p './udev/hwdb.d' +mkdir -p './update-manager/release-upgrades.d' +mkdir -p './update-notifier' mkdir -p './usb_modeswitch.d' maybe chmod 0755 '.' maybe chmod 0700 '.etckeeper' @@ -496,6 +498,9 @@ 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/20dbus' maybe chmod 0644 'apt/apt.conf.d/20packagekit' maybe chmod 0644 'apt/apt.conf.d/20snapd.conf' @@ -506,6 +511,7 @@ maybe chmod 0644 'apt/apt.conf.d/70debconf' maybe chmod 0644 'apt/apt.conf.d/90mintsystem' maybe chmod 0644 'apt/apt.conf.d/99needrestart' maybe chmod 0644 'apt/apt.conf.d/99synaptic' +maybe chmod 0644 'apt/apt.conf.d/99update-notifier' maybe chmod 0755 'apt/auth.conf.d' maybe chmod 0644 'apt/google.gpg-key2.pub' maybe chmod 0644 'apt/launchpad-ppa.ubuntu-webupd8team.gpg-key2.pub' @@ -1102,6 +1108,7 @@ maybe chmod 0755 'cron.daily/mdadm' maybe chmod 0755 'cron.daily/mlocate' maybe chmod 0755 'cron.daily/passwd' maybe chmod 0755 'cron.daily/ubuntu-advantage-tools' +maybe chmod 0755 'cron.daily/update-notifier-common' maybe chmod 0755 'cron.hourly' maybe chmod 0644 'cron.hourly/.placeholder' maybe chmod 0755 'cron.monthly' @@ -1111,6 +1118,7 @@ maybe chmod 0755 'cron.weekly' maybe chmod 0644 'cron.weekly/.placeholder' maybe chmod 0755 'cron.weekly/0anacron' maybe chmod 0755 'cron.weekly/man-db' +maybe chmod 0755 'cron.weekly/update-notifier-common' maybe chmod 0644 'crontab' maybe chmod 0755 'cruft' maybe chmod 0755 'cruft/filters-unex' @@ -2765,12 +2773,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 0755 'upstream-release' maybe chmod 0644 'upstream-release/lsb-release' diff --git a/apt/apt.conf.d/10periodic b/apt/apt.conf.d/10periodic new file mode 100644 index 0000000..d1922e3 --- /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 0000000..14ead83 --- /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 0000000..a2ad262 --- /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 0000000..21acb0c --- /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 0000000..e90d153 --- /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 0000000..07b890c --- /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 0000000..e34356c --- /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 0000000..0793c9e --- /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 0000000..e511ab7 --- /dev/null +++ b/update-manager/release-upgrades @@ -0,0 +1,16 @@ +# Default behavior for the release upgrader. + +[DEFAULT] +# Default prompting behavior, valid options: +# +# never - Never check for, or allow upgrading to, 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 supported 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 if this option is used and +# the currently-running release is not itself an LTS release the +# upgrader will assume prompt was meant to be normal. +Prompt=lts diff --git a/update-motd.d/90-updates-available b/update-motd.d/90-updates-available new file mode 100755 index 0000000..404b889 --- /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 0000000..f00f489 --- /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 0000000..3b4bd13 --- /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 0000000..e5ec39e --- /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 0000000..e86de0b --- /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