source: main/trunk/greenstone3/service.d/greenstone3-stop.sh@ 37161

Last change on this file since 37161 was 37161, checked in by davidb, 15 months ago

Weaving in the ability to have custom scripts to start and stop Greenstone3

File size: 451 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" \
9 && if [ -f SETUP.bash ] ; then . ./SETUP.bash ; else . ./gs3-setup-cli.sh && . ./gs3-setup.sh ; fi \
10 && if [ -f ANT-STOP-CUSTOM.sh ] ; then ./ANT-STOP-CUSTOM.sh ; else ant stop ; fi
11
Note: See TracBrowser for help on using the repository browser.