root/pbibuild/modules/limewire/overlay-dir/PBI.FirstRun.sh

Revision 1094, 1.0 KB (checked in by kris, 12 months ago)

Added LimeWire? to the list of modules we can build

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Filename: PBI.FirstRun.sh
3# Place any custom installation code here.
4# This script will be run before your program is extracted into
5# /Programs/<ProgNameVer>/
6# ${1} is the directory name.
7# ${2} is the username of person performing install.
8# Return a '2' to halt the PBI installation
9# TIP: 'kdialog' should be used for user interaction.
10# To interact with the progress dialog echo these flags:
11# echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar
12# echo 'SETSTEPS: <num>' # Set the current progress of the progress bar
13# echo 'MSG: <text>' # Display this text above progress bar
14#########################################
15INSTALLED=`ls /Programs | grep LimeWire`
16if [ $? = 0 ]
17then
18        kdialog --msgbox "Please remove the previous version of LimeWire first"
19        exit 2
20fi
21
22if [ ! -e "/usr/local/bin/java" ]
23then
24        kdialog --error "Error: LimeWire requires Java to run. Please install Java from www.pbidir.com before installing LimeWire."
25        exit 2
26fi
Note: See TracBrowser for help on using the browser.