You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* GeoServer will now start in the background and save the PID to data/geoserver/pid/geoserver.pid
* GeoServer stdout is redirected to data/geoserver/log/std.out
Signed-off-by: Austin Heyne <[email protected]>
Copy file name to clipboardExpand all lines: bin/cloud-local.sh
+47-15Lines changed: 47 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
# thanks accumulo for these resolutions snippets
4
4
# Start: Resolve Script Directory
5
5
SOURCE="${BASH_SOURCE[0]}"
6
-
while [ -h"${SOURCE}" ];do# resolve $SOURCE until the file is no longer a symlink
6
+
while [[-h"${SOURCE}"]];do# resolve $SOURCE until the file is no longer a symlink
7
7
bin="$(cd -P "$( dirname "${SOURCE}")"&&pwd)"
8
8
SOURCE="$(readlink "${SOURCE}")"
9
9
[[ "${SOURCE}"!= /* ]] && SOURCE="${bin}/${SOURCE}"# if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
@@ -37,7 +37,7 @@ function download_packages() {
37
37
test -d ${CLOUD_HOME}/pkg || mkdir ${CLOUD_HOME}/pkg
38
38
39
39
local mirror
40
-
if [ -z${pkg_src_mirror+x} ];then
40
+
if [[-z${pkg_src_mirror+x}]];then
41
41
local mirror=$(curl 'https://www.apache.org/dyn/closer.cgi'| grep -o '<strong>[^<]*</strong>'| sed 's/<[^>]*>//g'| head -1)
echo"If the environment variable GEOSERVER_HOME is set then the parameter '-gs' may be used with 'start' to automatically start/stop GeoServer with the cloud."
315
+
echo"If the environment variable GEOSERVER_HOME is set then the parameter '-gs' may be used with 'start' to automatically start/stop GeoServer with the cloud."
288
316
}
289
317
290
-
if [ "$#"-ne 1 ];then
318
+
if [[ "$2"-eq"-gs" ]];then
319
+
if [[ -n"${GEOSERVER_HOME}"&&-e$GEOSERVER_HOME/bin/startup.sh ]];then
320
+
GEOSERVER_ENABLED=1
321
+
else
322
+
echo"The environment variable GEOSERVER_HOME is not set or is not valid."
0 commit comments