equal
deleted
inserted
replaced
|
1 #!/bin/sh |
|
2 # postinst script for littlebird |
|
3 # |
|
4 # see: dh_installdeb(1) |
|
5 set -e |
|
6 . /usr/share/debconf/confmodule |
|
7 |
|
8 # summary of how this script can be called: |
|
9 # * <postinst> `configure' <most-recently-configured-version> |
|
10 # * <old-postinst> `abort-upgrade' <new version> |
|
11 # * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
|
12 # <new-version> |
|
13 # * <postinst> `abort-remove' |
|
14 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
|
15 # <failed-install-package> <version> `removing' |
|
16 # <conflicting-package> <version> |
|
17 # for details, see http://www.debian.org/doc/debian-policy/ or |
|
18 # the debian-policy package |
|
19 |
|
20 |
|
21 case "$1" in |
|
22 configure) |
|
23 db_get mysql-server/root_password && adminpass="$RET" || true |
|
24 |
|
25 db_get littlebird-tc/db/user && user="$RET" || true |
|
26 db_get littlebird-tc/db/pass && pass="$RET" || true |
|
27 db_get littlebird-tc/db/host && host="$RET" || true |
|
28 db_get littlebird-tc/db/name && name="$RET" || true |
|
29 |
|
30 cat <<EOF |
|
31 adminpass: $adminpass |
|
32 user: $user |
|
33 pass: $pass |
|
34 host: $host |
|
35 name: $name |
|
36 EOF |
|
37 |
|
38 ;; |
|
39 |
|
40 abort-upgrade|abort-remove|abort-deconfigure) |
|
41 ;; |
|
42 |
|
43 *) |
|
44 echo "postinst called with unknown argument \`$1'" >&2 |
|
45 exit 1 |
|
46 ;; |
|
47 esac |
|
48 |
|
49 # dh_installdeb will replace this with shell code automatically |
|
50 # generated by other debhelper scripts. |
|
51 |
|
52 #DEBHELPER# |
|
53 |
|
54 exit 0 |