OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # | 2 # |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
| 7 set -e |
| 8 |
7 @@include@@../common/postinst.include | 9 @@include@@../common/postinst.include |
8 | 10 |
9 # Add to the alternatives system | 11 # Add to the alternatives system |
10 # | 12 # |
11 # On Ubuntu 12.04, we have the following priorities | 13 # On Ubuntu 12.04, we have the following priorities |
12 # (which can be obtain be installing browsers and running | 14 # (which can be obtain be installing browsers and running |
13 # update-alternatives --query x-www-browser): | 15 # update-alternatives --query x-www-browser): |
14 # | 16 # |
15 # /usr/bin/epiphany-browser 85 | 17 # /usr/bin/epiphany-browser 85 |
16 # /usr/bin/firefox 40 | 18 # /usr/bin/firefox 40 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 add_udev_symlinks | 60 add_udev_symlinks |
59 | 61 |
60 ## MAIN ## | 62 ## MAIN ## |
61 if [ ! -e "$DEFAULTS_FILE" ]; then | 63 if [ ! -e "$DEFAULTS_FILE" ]; then |
62 echo 'repo_add_once="true"' > "$DEFAULTS_FILE" | 64 echo 'repo_add_once="true"' > "$DEFAULTS_FILE" |
63 echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE" | 65 echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE" |
64 fi | 66 fi |
65 | 67 |
66 # Run the cron job immediately to perform repository configuration. | 68 # Run the cron job immediately to perform repository configuration. |
67 nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 & | 69 nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 & |
OLD | NEW |