File: cw.postinst

package info (click to toggle)
unixcw 2.2-11
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,132 kB
  • ctags: 706
  • sloc: ansic: 6,737; cpp: 1,935; makefile: 341; sh: 214; awk: 209
file content (15 lines) | stat: -rw-r--r-- 279 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

[ "$1" = configure ] || exit 0

. /usr/share/debconf/confmodule

db_get cw/suid_bit

if [ "$RET" = "true" ]; then
  if !( `dpkg-statoverride --list | grep -q bin/cw$` ); then
    /usr/sbin/dpkg-statoverride --add --update root root 4755 /usr/bin/cw
  fi
fi

exit 0