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

Subscribers

People subscribed via source and target branches

to all changes: