Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: chrome/installer/linux/debian/postinst

Issue 2299093002: Revert of Support relocatable RPM packages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/installer/linux/common/variables.include ('k') | chrome/installer/linux/debian/postrm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7 set -e
8 8
9 @@include@@../common/variables.include
10
11 @@include@@../common/postinst.include 9 @@include@@../common/postinst.include
12 10
13 @@include@@../common/apt.include
14
15 @@include@@../common/symlinks.include
16
17 # Add to the alternatives system 11 # Add to the alternatives system
18 # 12 #
19 # On Ubuntu 12.04, we have the following priorities 13 # On Ubuntu 12.04, we have the following priorities
20 # (which can be obtain be installing browsers and running 14 # (which can be obtain be installing browsers and running
21 # update-alternatives --query x-www-browser): 15 # update-alternatives --query x-www-browser):
22 # 16 #
23 # /usr/bin/epiphany-browser 85 17 # /usr/bin/epiphany-browser 85
24 # /usr/bin/firefox 40 18 # /usr/bin/firefox 40
25 # /usr/bin/konqueror 30 19 # /usr/bin/konqueror 30
26 # 20 #
(...skipping 16 matching lines...) Expand all
43 ;; 37 ;;
44 unstable ) 38 unstable )
45 # Unstable, give it the "lowest" priority. 39 # Unstable, give it the "lowest" priority.
46 PRIORITY=120 40 PRIORITY=120
47 ;; 41 ;;
48 * ) 42 * )
49 PRIORITY=0 43 PRIORITY=0
50 ;; 44 ;;
51 esac 45 esac
52 46
53 remove_chrome_symlinks
54 add_chrome_symlinks
55
56 remove_udev_symlinks
57
58 update-alternatives --install /usr/bin/x-www-browser x-www-browser \ 47 update-alternatives --install /usr/bin/x-www-browser x-www-browser \
59 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY 48 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY
60 update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser \ 49 update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser \
61 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY 50 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY
62 51
63 update-alternatives --install /usr/bin/google-chrome google-chrome \ 52 update-alternatives --install /usr/bin/google-chrome google-chrome \
64 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY 53 /usr/bin/@@USR_BIN_SYMLINK_NAME@@ $PRIORITY
65 54
55 @@include@@../common/apt.include
56
57 @@include@@../common/symlinks.include
58
59 remove_udev_symlinks
60
66 ## MAIN ## 61 ## MAIN ##
67 if [ ! -e "$DEFAULTS_FILE" ]; then 62 if [ ! -e "$DEFAULTS_FILE" ]; then
68 echo 'repo_add_once="true"' > "$DEFAULTS_FILE" 63 echo 'repo_add_once="true"' > "$DEFAULTS_FILE"
69 echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE" 64 echo 'repo_reenable_on_distupgrade="true"' >> "$DEFAULTS_FILE"
70 fi 65 fi
71 66
72 # Run the cron job immediately to perform repository configuration. 67 # Run the cron job immediately to perform repository configuration.
73 nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 & 68 nohup sh /etc/cron.daily/@@PACKAGE@@ > /dev/null 2>&1 &
OLDNEW
« no previous file with comments | « chrome/installer/linux/common/variables.include ('k') | chrome/installer/linux/debian/postrm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698