File: postinst

package info (click to toggle)
libpam-abl 0.6.0-7.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: ansic: 4,757; sh: 47; makefile: 10
file content (29 lines) | stat: -rw-r--r-- 417 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
#!/bin/sh
# postinst script for pam-abl

set -e
pam-auth-update --package

case "$1" in
    configure)
    if [ ! -d /var/lib/abl ]; then
    mkdir /var/lib/abl
    fi
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    if [ -d /var/lib/abl ]; then
    rm -fr /var/lib/abl
    fi
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0