]>
Commit | Line | Data |
---|---|---|
930e051d DM |
1 | #!/bin/sh |
2 | # postinst script for corosync | |
3 | # | |
4 | # see: dh_installdeb(1) | |
5 | ||
6 | set -e | |
7 | ||
8 | # for details, see http://www.debian.org/doc/debian-policy/ or | |
9 | # the debian-policy package | |
10 | ||
11 | case "$1" in | |
12 | configure) | |
13 | ||
14 | # create the ais user | |
15 | adduser --quiet --group --system --no-create-home ais | |
16 | ||
d44d1dba FG |
17 | if [ -n "$2" ]; then |
18 | # switch from stop-wait-start to restart requires a final manual start after upgrade | |
19 | if dpkg --compare-versions "$2" le "2.4.2-1" ; then | |
20 | deb-systemd-invoke start corosync.service > /dev/null || true | |
21 | fi | |
22 | fi | |
23 | ||
930e051d DM |
24 | ;; |
25 | ||
26 | abort-upgrade|abort-remove|abort-deconfigure) | |
27 | ;; | |
28 | ||
29 | *) | |
30 | echo "postinst called with unknown argument \`$1'" >&2 | |
31 | exit 1 | |
32 | ;; | |
33 | esac | |
34 | ||
35 | # dh_installdeb will replace this with shell code automatically | |
36 | # generated by other debhelper scripts. | |
37 | ||
38 | #DEBHELPER# | |
39 | ||
40 | exit 0 |