diff options
| author | luccioman <luccioman@users.noreply.github.com> | 2018-11-26 18:26:52 +0100 |
|---|---|---|
| committer | luccioman <luccioman@users.noreply.github.com> | 2018-11-26 18:26:52 +0100 |
| commit | 17ad1f7e65475f6f5de96f69e74c938fac699768 (patch) | |
| tree | 44b48d3ddabff4233fe3acab72a8b2b913bf05e2 /bin/up.sh | |
| parent | 07730fe0400d009fc667ce03ab3af76b54ad67ab (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-x | bin/up.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
