source: main/trunk/package-kits/linux/files/gli@ 29597

Last change on this file since 29597 was 29597, checked in by Jeremy Symon, 9 years ago

Fixed outdated path in gli wrapper script. Now uses a variable so it shouldn't be a problem again in the future.

  • Property svn:executable set to *
File size: 447 bytes
RevLine 
[29474]1#!/bin/bash
[29460]2
[29474]3if test -z "$JAVA_HOME"; then
4 for dir in /usr/lib/jvm/default/ /usr/lib/jvm/default-java/; do
5 if test -d $dir; then
6 JAVA_HOME=$dir
7 break
8 fi
9 done
10fi
11if test -z "$JAVA_HOME"; then
12 echo -e "Could not find JAVA_HOME.\nPlease export JAVA_HOME=<jre_location>" >&2
13 exit 1
14fi
[29460]15
[29474]16export JAVA_HOME
17
[29460]18. greenstone --no-interactive
19
[29597]20%GLI%/gli.sh -collectdir $GSDL3HOME/sites/localsite/collect
Note: See TracBrowser for help on using the repository browser.