mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-01-22 05:08:42 -05:00
17ad1f7e65
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.
13 lines
312 B
Bash
Executable File
13 lines
312 B
Bash
Executable File
#!/usr/bin/env sh
|
|
cd "`dirname $0`"
|
|
. ./checkDataFolder.sh
|
|
|
|
|
|
for i in "$YACY_DATA_PATH/INDEX"/* ; do
|
|
if [ -d "$i" ]; then
|
|
echo "Checking Solr index at $i..."
|
|
java -cp "$YACY_APP_PATH/lib/*" org.apache.lucene.index.CheckIndex "$i/SEGMENTS/solr_6_6/collection1/data/index/" -exorcise
|
|
fi
|
|
done
|
|
cd ..
|