This repository has been archived on 2024-07-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
etckeeper/needrestart/notify.d/200-write
T
Gitea 90ad089056 committing changes in /etc after apt run
Package changes:
+cgroupfs-mount 1.4 all
+containerd 1.6.20~ds1-1+b1 amd64
+criu 3.17.1-2 amd64
+docker.io 20.10.24+dfsg1-1+b3 amd64
+libintl-perl 1.33-1 all
+libintl-xs-perl 1.33-1 amd64
+libmodule-find-perl 0.16-2 all
+libmodule-scandeps-perl 1.31-2 all
+libnet1 1.1.6+dfsg-3.2 amd64
+libnftables1 1.0.6-2+deb12u2 amd64
+libproc-processtable-perl 0.634-1+b2 amd64
+libprotobuf32 3.21.12-3 amd64
+libsort-naturally-perl 1.03-4 all
+needrestart 3.6-4+deb12u1 all
+python3-protobuf 3.21.12-3 amd64
+runc 1.1.5+ds1-1+deb12u1 amd64
+tini 0.19.0-1 amd64
2024-02-16 15:38:16 +01:00

45 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
# needrestart - Restart daemons after library updates.
#
# Authors:
# Thomas Liske <thomas@fiasko-nw.net>
#
# Copyright Holder:
# 2013 - 2022 (C) Thomas Liske [http://fiasko-nw.net/~thomas/]
#
# License:
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Use write to notify users on TTYs.
. /usr/lib/needrestart/notify.d.sh
if [ "$NR_NOTIFYD_DISABLE_WRITE" = '1' ]; then
echo "[$0] disabled in global config" 1>&2
exit 1
fi
case "$NR_SESSION" in
/dev/tty*|/dev/pts*)
echo "[$0] notify user $NR_USERNAME on $NR_SESSION" 1>&2
{
echo
gettext 'Your session is running obsolete binaries or libraries as listed below.
Please consider a relogin or restart of the affected processes!'
echo
echo
cat -n
echo
} | write "$NR_USERNAME" "$NR_SESSION" 2> /dev/null
;;
*)
echo "[$0] skip session w/o tty" 1>&2
exit 1
;;
esac