File: prerm

package info (click to toggle)
yp-tools 4.2.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,292 kB
  • sloc: ansic: 4,192; sh: 1,081; makefile: 62; sed: 16
file content (25 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

case "$1" in
  remove|upgrade|remove-in-favour|deconfigure-in-favour)
  	# /sbin/unix_chkpwd is installed setgid shadow by default; for
  	# NIS we need setuid root, so the postinst installed a
  	# statoverride.  Remove that override again here.
       if OVR=$(dpkg-statoverride --list /sbin/unix_chkpwd) && \
              [ "$OVR" = "root root 4755 /sbin/unix_chkpwd" ]; then
  		dpkg-statoverride --remove /sbin/unix_chkpwd
  		chown root:shadow /sbin/unix_chkpwd
  		chmod 2755 /sbin/unix_chkpwd
           fi
  ;;

  failed-upgrade)
  ;;

  *)
  ;;
esac

#DEBHELPER#