Debian Codegraph @

debian/postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 # summary of how this script can be called:
6 # * <postinst> 'configure' <most-recently-configured-version>
7 # * <old-postinst> 'abort-upgrade' <new version>
8 # * <conflictor's-postinst> 'abort-remove' 'in-favour' <package>
9 # <new-version>
10 # * <deconfigured's-postinst> 'abort-deconfigure' 'in-favour'
11 # <failed-install-package> <version> 'removing'
12 # <conflicting-package> <version>
13 # for details, see http://www.debian.org/doc/debian-policy/ or
14 # the debian-policy package
15 #
16 # quoting from the policy:
17 # Any necessary prompting should almost always be confined to the
18 # post-installation script, and should be protected with a conditional
19 # so that unnecessary prompting doesn't happen if a package's
20 # installation fails and the 'postinst' is called with 'abort-upgrade',
21 # 'abort-remove' or 'abort-deconfigure'.
22
23 case "$1" in
24 configure)
25 if ! dpkg-statoverride --list /etc/ergochat/ldap.yaml >/dev/null ; then
26 chown root:ergochat /etc/ergochat/ldap.yaml
27 chmod 640 /etc/ergochat/ldap.yaml
28 fi
29 ;;
30
31 abort-upgrade|abort-remove|abort-deconfigure)
32 :
33 ;;
34
35 *)
36 echo "postinst called with unknown argument '$1'" >&2
37 exit 1
38 ;;
39 esac
40
41 # dh_installdeb will replace this with shell code automatically
42 # generated by other debhelper scripts.
43
44 #DEBHELPER#
45
46 exit 0