OLD | NEW |
| (Empty) |
1 #!/bin/sh | |
2 | |
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 # postinst script for chromeos-login | |
8 # | |
9 # see: dh_installdeb(1) | |
10 | |
11 set -e | |
12 | |
13 # summary of how this script can be called: | |
14 # * <postinst> `configure' <most-recently-configured-version> | |
15 # * <old-postinst> `abort-upgrade' <new version> | |
16 # * <conflictor's-postinst> `abort-remove' `in-favour' <package> | |
17 # <new-version> | |
18 # * <postinst> `abort-remove' | |
19 # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | |
20 # <failed-install-package> <version> `removing' | |
21 # <conflicting-package> <version> | |
22 # for details, see http://www.debian.org/doc/debian-policy/ or | |
23 # the debian-policy package | |
24 | |
25 | |
26 case "$1" in | |
27 configure) | |
28 # make these idempotent for now, since chromium builds don't | |
29 # include these binaries yet. sigh. | |
30 chmod 6755 /opt/google/chrome/session || true | |
31 chmod 6755 /opt/google/chrome/emit_login_prompt_ready || true | |
32 ;; | |
33 | |
34 abort-upgrade|abort-remove|abort-deconfigure) | |
35 ;; | |
36 | |
37 *) | |
38 echo "postinst called with unknown argument \`$1'" >&2 | |
39 exit 1 | |
40 ;; | |
41 esac | |
42 | |
43 # dh_installdeb will replace this with shell code automatically | |
44 # generated by other debhelper scripts. | |
45 | |
46 #DEBHELPER# | |
47 | |
48 exit 0 | |
OLD | NEW |