home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh -e
-
- if dpkg --compare-versions "$2" lt-nl 73-0ubuntu6.1; then
- if [ -e /var/log/installer/syslog ]; then
- sed -i '/user-setup: YOU SHOULD RECORD THIS/,+2 d' /var/log/installer/syslog
- fi
- fi
-
- auth=0c1295085dca124e6ba5a3cea7993c22
- account=9f04221fe44762047894adeb96ffd069
- session=2e9a42f2a3b6573891ff9e6bf0c31c9e
- password=4cf59ec48caad2a06ea2e183d8bc007a
-
- force=
- if dpkg --compare-versions "$2" lt-nl 53-1ubuntu6; then
- # If we're upgrading from an older ecryptfs-utils,
- # and the pam configuration precisely matches that
- # which was written by auth-client-config, we can
- # safely force the pam-auth-update.
- force=--force
- for type in auth account session password
- do
- sum="$(md5sum /etc/pam.d/common-$type 2>/dev/null | awk '{ print $1 }')"
- [ "$sum" = "$(eval echo \$$type)" ] || force=
- done
- fi
- pam-auth-update --package $force
-
-
-
- exit 0
-