summaryrefslogtreecommitdiff
path: root/bin/up.sh
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2018-11-26 18:26:52 +0100
committerluccioman <luccioman@users.noreply.github.com>2018-11-26 18:26:52 +0100
commit17ad1f7e65475f6f5de96f69e74c938fac699768 (patch)
tree44b48d3ddabff4233fe3acab72a8b2b913bf05e2 /bin/up.sh
parent07730fe0400d009fc667ce03ab3af76b54ad67ab (diff)
Added support for custom DATA path in shell scripts
When the YACY_DATA_PATH environment variable is set, shell scripts will now use the given path instead of relative ../DATA which remains the default when the variable is not set. Necessary in the context of Snap package (see issue #254) as YaCy is started with startYACY.sh and an absolute DATA parent path in parameter.
Diffstat (limited to 'bin/up.sh')
-rwxr-xr-xbin/up.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/up.sh b/bin/up.sh
index c0bbf41de..86b6b4b70 100755
--- a/bin/up.sh
+++ b/bin/up.sh
@@ -2,6 +2,6 @@
cd "`dirname $0`"
./apicall.sh "/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
-#port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
+#port=$(grep ^port= "$YACY_DATA_PATH/SETTINGS/yacy.conf" |cut -d= -f2)
#./up1.sh localhost:$port