source: main/trunk/greenstone3/service.d/greenstone3-start.sh@ 36483

Last change on this file since 36483 was 36483, checked in by davidb, 20 months ago

Changed how full dir to script's location is worked out, based on StackOverflow article

File size: 315 bytes
Line 
1#!/bin/bash
2
3# See: https://stackoverflow.com/questions/29832037/how-to-get-script-directory-in-posix-sh/29835459#29835459
4
5full_progdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )"
6full_parentdir=${full_progdir%/*}
7
8cd "$full_parentdir" && . ./gs3-setup-cli.sh && . ./gs3-setup.sh && ant start
9
Note: See TracBrowser for help on using the repository browser.