]> git.hoellein.online Git - vserver/commitdiff
committing changes in /etc made by "apt-get upgrade"
authormhoellein <mario@hoellein.online>
Thu, 16 Jul 2020 18:53:52 +0000 (20:53 +0200)
committermhoellein <mario@hoellein.online>
Thu, 16 Jul 2020 18:53:52 +0000 (20:53 +0200)
Package changes:
-bash 5.0-6ubuntu1 amd64
+bash 5.0-6ubuntu1.1 amd64
-less 551-1 amd64
+less 551-1ubuntu0.1 amd64
-libldap-2.4-2 2.4.49+dfsg-2ubuntu1.2 amd64
-libldap-common 2.4.49+dfsg-2ubuntu1.2 all
+libldap-2.4-2 2.4.49+dfsg-2ubuntu1.3 amd64
+libldap-common 2.4.49+dfsg-2ubuntu1.3 all
-python3-distupgrade 1:20.04.19 all
+python3-distupgrade 1:20.04.21 all
-ubuntu-release-upgrader-core 1:20.04.19 all
+ubuntu-release-upgrader-core 1:20.04.21 all

update-motd.d/91-release-upgrade

index f00f48940c8ddf562cc1036f36c53ecb0747959d..dc2ae1029a8fc49e06e8084ec111e31287a7ac08 100755 (executable)
@@ -4,6 +4,12 @@
 if [ "$(lsb_release -sd | cut -d' ' -f4)" = "(development" ]; then
     exit 0
 fi
+
+# if it is non-root user, skip
+if [ $(id -u) -ne 0 ]; 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