File: s-nail.postinst

package info (click to toggle)
s-nail 14.9.11-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,020 kB
  • sloc: ansic: 65,994; sh: 8,496; perl: 494; makefile: 85
file content (22 lines) | stat: -rwxr-xr-x 453 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

if [ "$1" = "configure" ] && [ -n "$2" ] && dpkg --compare-versions "$2" lt 14.8.14-2~ ; then
    update-alternatives --remove "mailx" "/usr/bin/s-nail"
fi

. /usr/share/debconf/confmodule
db_version 2.0

if [ "$1" = "configure" ]; then
    db_get s-nail/setgid-dotlock

    if [ "$RET" = true ]; then
        chmod 2755 /usr/lib/s-nail/s-nail-privsep
    else
        chmod 0755 /usr/lib/s-nail/s-nail-privsep
    fi
fi

#DEBHELPER#