File: postinst

package info (click to toggle)
terminatorx 4.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,464 kB
  • sloc: cpp: 13,364; ansic: 2,422; sh: 1,272; makefile: 135; xml: 94; awk: 3
file content (28 lines) | stat: -rw-r--r-- 477 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
#!/bin/sh

set -e

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

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

umask 022

db_get terminatorx/suid_bin
suid="$RET"

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

db_stop

#DEBHELPER#