Ticket #754: start_geomajas.sh

File start_geomajas.sh, 1.1 KB (added by pieterdg, 13 years ago)
Line 
1#!/bin/sh
2
3# -----------------------------------------------------------------------------
4# Startup Script for Geomajas - using firefox
5# -----------------------------------------------------------------------------
6
7
8
9# -----------------------------------------------------------------------------
10# Check for environment variables
11# -----------------------------------------------------------------------------
12
13##### Checking JAVA_HOME:
14if [ -z "$JAVA_HOME" ]; then
15 _RUNJAVA=java
16else
17 _RUNJAVA="$JAVA_HOME"/bin/java
18fi
19
20
21
22# -----------------------------------------------------------------------------
23# Checks OK, now run
24# -----------------------------------------------------------------------------
25
26##### Add a script that will launch the browser after starting Geomajas
27/usr/lib/geomajas-1.8.0-bin/bin/startup.sh & (echo "10"; sleep 6; echo "20"; sleep 6; echo "30"; sleep 6; echo "40"; sleep 6; echo "50"; sleep 6; echo "60"; sleep 6; echo "70"; sleep 6; echo "80"; sleep 6; echo "90"; sleep 6; echo "100"; sleep 6) | zenity --progress --auto-close --text "Loading Geomajas"
28firefox "http://localhost:3420/showcase/"