summaryrefslogtreecommitdiff
path: root/startYACY.sh
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2016-09-02 11:22:39 +0200
committerluccioman <luccioman@users.noreply.github.com>2016-09-02 11:22:39 +0200
commitf3f478448bab001849d3d621c159a2a0de8758cc (patch)
tree28a7ca0bdd9c9262d5d0577b0816be3489dbe82d /startYACY.sh
parent7c0f1106a6d2d9de0aded56f783d0eb065c575c9 (diff)
Explicitely set YaCy data folder when starting in MacOS bundle
Diffstat (limited to 'startYACY.sh')
-rwxr-xr-xstartYACY.sh17
1 files changed, 15 insertions, 2 deletions
diff --git a/startYACY.sh b/startYACY.sh
index 8763b9086..567cc5e89 100755
--- a/startYACY.sh
+++ b/startYACY.sh
@@ -40,6 +40,7 @@ Options
-l, --logging save the output of YaCy to yacy.log
-d, --debug show the output of YaCy on the console
-p, --print-out only print the command, which would be executed to start YaCy
+ -start, -startup [data-path] start YaCy using the specified data folder path, relative to the current user home
-g, --gui start a gui for YaCy
USAGE
}
@@ -101,6 +102,10 @@ for option in $options;do
-t|--tail-log)
TAILLOG=1
;;
+ -start|-startup)
+ STARTUP=1
+ isparameter=1
+ ;;
-g|--gui)
GUI=1
isparameter=1
@@ -111,7 +116,11 @@ for option in $options;do
isparameter=1;
continue
else
- parameter="$parameter $option"
+ if [ $parameter ];then
+ parameter="$parameter $option"
+ else
+ parameter="$option"
+ fi
fi
fi #parameter or option?
done
@@ -189,7 +198,11 @@ for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done
CLASSPATH=".:$CLASSPATH"
cmdline="$JAVA $JAVA_ARGS -classpath $CLASSPATH net.yacy.yacy";
-if [ $GUI -eq 1 ] #gui
+
+if [ $STARTUP -eq 1 ] #startup
+then
+ cmdline="$cmdline -startup $parameter"
+elif [ $GUI -eq 1 ] #gui
then
cmdline="$cmdline -gui $parameter"
fi