8
if [ "$type" = upgrade ]
7
if dpkg --compare-versions "$2" le 2.2.2-4 && test -e /lib/libdb.so.3; then
8
# Make upgrades to newer libdb.so.3 easier
9
cat /lib/libdb.so.3 > /lib/libdb.so.3.old
11
if dpkg --compare-versions "$2" le 2.1.1-0.1; then
12
if [ -f /var/run/utmpd.pid ]; then
13
if kill -s TERM `cat /var/run/utmpd.pid` > /dev/null 2>&1
15
if [ -f /var/run/utmp ]; then
16
cp /dev/null /var/run/utmp
17
if grep '^utmp:' /etc/group; then
18
chown root:utmp /var/run/utmp
19
chmod 664 /var/run/utmp
21
chown root:root /var/run/utmp
22
chmod 644 /var/run/utmp
25
if [ -f /var/log/wtmp ]; then
28
if grep '^utmp:' /etc/group; then
29
chown root:utmp /var/log/wtmp
30
chmod 664 /var/log/wtmp
32
chown root:root /var/log/wtmp
33
chmod 644 /var/log/wtmp
36
rm -f /etc/init.d/utmpd
37
update-rc.d utmpd remove > /dev/null
40
if [ -f /var/run/utmpx ]; then rm -f /var/run/utmpx; fi
41
if [ -f /var/log/wtmpx ]; then rm -f /var/log/wtmpx*; fi
42
if [ -e /var/run/utmpd.ro ]; then rm -f /var/run/utmpd.ro; fi
43
if [ -e /var/run/utmpd.rw ]; then rm -f /var/run/utmpd.rw; fi
46
10
# Load debconf module if available
47
11
if [ -f /usr/share/debconf/confmodule ] ; then
48
12
. /usr/share/debconf/confmodule
50
# NSS authentication trouble guard
51
if dpkg --compare-versions $2 lt 2.6-1; then
53
check="gdm kdm proftpd postgresql xscreensaver xdm"
54
# NSS services check: NSS_CHECK
55
if [ -n "$services" ]; then
56
if [ -f /usr/share/debconf/confmodule ] ; then
58
db_reset glibc/upgrade
59
db_subst glibc/upgrade services $services
60
db_input critical glibc/upgrade || true
65
echo "Name Service Switch update in the GNU C Library"
67
echo "Running services and programs that are using NSS need to be restarted,"
68
echo "otherwise they might not be able to do lookup or authentication any more."
69
echo "The installation process is able to restart some services (such as ssh or"
70
echo "telnetd), but other programs cannot be restarted automatically. One such"
71
echo "program that needs manual stopping and restart after the glibc upgrade by"
72
echo "yourself is xdm - because automatic restart might disconnect your active"
75
echo "This script detected the following installed services which must be"
76
echo "stopped before the upgrade: $services"
78
echo "If you want to interrupt the upgrade now and continue later, please"
79
echo "answer No to the question below."
81
frontend=`echo "$DEBIAN_FRONTEND" | tr '[:upper:]' '[:lower:]'`
82
if [ "$frontend" = noninteractive ]; then
83
echo "Non-interactive mode, upgrade glibc forcibly"
15
if [ -n "$preversion" ]; then
16
# NSS authentication trouble guard
17
if dpkg --compare-versions "$preversion" lt 2.6-1; then
19
check="gdm kdm proftpd postgresql xscreensaver xdm"
20
# NSS services check: NSS_CHECK
21
if [ -n "$services" ]; then
22
if [ -f /usr/share/debconf/confmodule ] ; then
24
db_reset glibc/upgrade
25
db_subst glibc/upgrade services $services
26
if [ "$RELEASE_UPGRADE_MODE" = desktop ]; then
27
db_input medium glibc/upgrade || true
29
db_input critical glibc/upgrade || true
86
echo -n "Do you want to upgrade glibc now? [Y/n] "
90
N*|n*) answer=false ;;
35
echo "Name Service Switch update in the GNU C Library"
37
echo "Running services and programs that are using NSS need to be restarted,"
38
echo "otherwise they might not be able to do lookup or authentication any more."
39
echo "The installation process is able to restart some services (such as ssh or"
40
echo "telnetd), but other programs cannot be restarted automatically. One such"
41
echo "program that needs manual stopping and restart after the glibc upgrade by"
42
echo "yourself is xdm - because automatic restart might disconnect your active"
45
echo "This script detected the following installed services which must be"
46
echo "stopped before the upgrade: $services"
48
echo "If you want to interrupt the upgrade now and continue later, please"
49
echo "answer No to the question below."
51
frontend=`echo "$DEBIAN_FRONTEND" | tr '[:upper:]' '[:lower:]'`
52
if [ "$frontend" = noninteractive ]; then
53
echo "Non-interactive mode, upgrade glibc forcibly"
56
echo -n "Do you want to upgrade glibc now? [Y/n] "
60
N*|n*) answer=false ;;
97
if [ "x$answer" != "xtrue" ]; then
98
echo "Stopped glibc upgrade. Please retry the upgrade after you have"
99
echo "checked or stopped services by hand."
67
if [ "x$answer" != "xtrue" ]; then
68
echo "Stopped glibc upgrade. Please retry the upgrade after you have"
69
echo "checked or stopped services by hand."
73
fi # end upgrading and $preversion lt 2.6-1
105
76
# This will keep us from using hwcap libs (optimized) during an