File: postinst

package info (click to toggle)
terminatorx 3.82-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,288 kB
  • ctags: 1,887
  • sloc: cpp: 11,760; ansic: 3,752; sh: 3,623; xml: 1,509; makefile: 129; awk: 3
file content (39 lines) | stat: -rw-r--r-- 832 bytes parent folder | download | duplicates (4)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh -e

action="$1"
oldversion="$2"

test -e /usr/share/debconf/confmodule && {
  . /usr/share/debconf/confmodule
    db_version 2.0
}

umask 022

if [ "$action" = "configure" ]; then
    scrollkeeper-update -q
fi

db_get terminatorx/suid_bin
suid="$RET"

if [ -x /usr/sbin/dpkg-statoverride ] ; then
        if ! dpkg-statoverride --list /usr/bin/terminatorX > /dev/null ; then
               if [ "$suid" = "false" ] ; then
                       chmod 0755 /usr/bin/terminatorX
               elif [ "$suid" = "true" ] ; then
                       chmod 4755 /usr/bin/terminatorX
               fi
       fi
else
       if [ "$suid" = "false" ] ; then
               chmod 0755 /usr/bin/terminatorX
       elif [ "$suid" = "true" ] ; then
               chmod 4755 /usr/bin/terminatorX
       fi

fi

db_stop

#DEBHELPER#