This file is indexed.

postinst is in ubuntu-sso-client 3.0.0-0ubuntu1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

LASTVERSION="0.99.4-0ubuntu1"

dpkg-maintscript-helper rm_conffile \
/etc/xdg/ubuntu-sso/oauth_registration.d/ubuntuone "$LASTVERSION" -- "$@"

dpkg-maintscript-helper rm_conffile \
/etc/xdg/ubuntu-sso/oauth_urls "$LASTVERSION" -- "$@"

rm_confdir() {
    local DIR="$1"
    if [ -d $DIR ]; then rmdir $DIR; fi || true
}

case "$1" in
configure)
    if dpkg --compare-versions "$2" le "$LASTVERSION"; then
        rm_confdir "/etc/xdg/ubuntu-sso/oauth_registration.d"
        rm_confdir "/etc/xdg/ubuntu-sso/"
    fi
esac