9
if [ "$DEBIAN_FRONTEND" = "noninteractive" ] ; then
17
if [ "$a" = "" ] ; then
20
a=`echo $a | tr A-Z a-z`
21
if [ "$a" = "y" -o "$a" = "n" ] ; then
29
if [ ! "$1" = "configure" ] ; then
33
if [ -d /usr/doc -a ! -e /usr/doc/$pkg -a -d /usr/share/doc/$pkg ] ; then
34
ln -s ../share/doc/$pkg /usr/doc/$pkg
37
if [ ! -e /etc/passwd ] ; then
38
cp /usr/share/base-passwd/passwd.master /etc/passwd
41
if [ ! -e /etc/group ] ; then
42
cp /usr/share/base-passwd/group.master /etc/group
45
if [ "$2" = "3.2.2" -a -f /etc/passwd.org ] ; then
48
You are upgrading from version 3.2.2 of base-passwd which had a nasty
49
bug: it swapped the uid and gid of local accounts. If you have not
50
fixed this problem manually I can undo the changes by restoring your
51
previous passwd file from the backup /etc/passwd.org.
55
askyesno "Should I restore your passwd? [Y/n]"
57
if [ "$a" = "y" ] ; then
58
cat /etc/passwd.org > /etc/passwd
64
if ! update-passwd --dry-run > $tmp ; then
67
update-passwd has found some differences between your system accounts
68
and the current Debian defaults. It is advisable to allow update-passwd
69
to change your system; without those changes some packages might not work
70
correctly. For more documentation on the Debian account policies please
71
see /usr/share/doc/base-passwd/README.
73
The list of proposed changes is:
80
It is highly recommend that you allow update-passwd to make these changes
81
(a backup file of modified files is made with the extension .org so you can
82
always restore the current settings).
85
askyesno "May I update your system? [Y/n]"
90
if [ "$a" = "y" ] ; then
91
echo "Okay, I am going to make the necessary updates now"
92
update-passwd --verbose
94
elif [ "$a" = "n" ] ; then
97
Okay, I will not update your system. If you want to make this update later
98
please check the update-passwd utility.
103
if [ "$changes" -gt 0 ] ; then
104
if command -v nscd > /dev/null 2>&1 ; then
105
nscd -i passwd -i group