Merge lp:~joshbrown/codemonkey/x64_flash_installer into lp:~tom-swartz07/codemonkey/trunk

Proposed by Josh Brown
Status: Merged
Merge reported by: Josh Brown
Merged at revision: not available
Proposed branch: lp:~joshbrown/codemonkey/x64_flash_installer
Merge into: lp:~tom-swartz07/codemonkey/trunk
Diff against target: 57 lines (+51/-0) (has conflicts)
1 file modified
x64 Flash Installer (+51/-0)
Conflict adding file x64 Flash Installer.  Moved existing file to x64 Flash Installer.moved.
To merge this branch: bzr merge lp:~joshbrown/codemonkey/x64_flash_installer
Reviewer Review Type Date Requested Status
Tom Swartz Abstain
Review via email: mp+28208@code.launchpad.net

Description of the change

Added a catch to end the program if wget fails.

To post a comment you must log in.
Revision history for this message
Tom Swartz (tom-swartz07) wrote :
review: Abstain
Revision history for this message
Josh Brown (joshbrown) wrote :

Oops, looks like I got confused, sorry. I'll mark this as merged.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'x64 Flash Installer'
2--- x64 Flash Installer 1970-01-01 00:00:00 +0000
3+++ x64 Flash Installer 2010-06-22 16:44:27 +0000
4@@ -0,0 +1,51 @@
5+#!/bin/sh
6+# Copyright (C) 2010 Thomas Swartz
7+#
8+# This program is intended to install X64 version of Adobe Flash
9+#
10+# This program is free software: you can redistribute it and/or modify
11+# it under the terms of the GNU General Public License as published by
12+# the Free Software Foundation, either version 3 of the License, or
13+# (at your option) any later version.
14+#
15+# This program is distributed in the hope that it will be useful,
16+# but WITHOUT ANY WARRANTY; without even the implied warranty of
17+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18+# GNU General Public License for more details.
19+#
20+# You should have received a copy of the GNU General Public License
21+# along with this program. If not, see <http://www.gnu.org/licenses/>.
22+
23+if [ "`whoami`" != "root" ];
24+then
25+echo "Please run with SUDO"
26+exit 1
27+fi
28+
29+echo "Closing Browsers..."
30+killall -9 firefox
31+killall -9 google-chrome
32+
33+echo "Removing previous installs of Flash:"
34+apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
35+rm -f /usr/lib/mozilla/plugins/*flash*
36+rm -f ~/.mozilla/plugins/*flash*
37+rm -f /usr/lib/firefox/plugins/*flash*
38+rm -f /usr/lib/firefox-addons/plugins/*flash*
39+rm -f /usr/lib/chromium-browser/plugins/*flash*
40+rm -rfd /usr/lib/nspluginwrapper
41+
42+echo "Installing Flash Player 10.0.45.2"
43+cd ~
44+wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz \
45+ || { echo 'Error: Cannot retrieve flash player.' >&2; exit 1; }
46+tar zxvf libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
47+mv libflashplayer.so /usr/lib/flashplugin-installer/
48+mv libflashplayer.so /usr/lib/mozilla/plugins
49+
50+echo "Adding PPA for x64 Flash"
51+add-apt-repository ppa:sevenmachines/flash
52+apt-get update && apt-get install flashplugin64-installer
53+
54+echo "Done"
55+echo "You may re-start your browser now"
56
57=== renamed file 'x64 Flash Installer' => 'x64 Flash Installer.moved'

Subscribers

People subscribed via source and target branches

to all changes: