Fixes #124 in bin/solr for 'cdpath' users

Signed-off-by: Jan Høydahl <janhoy@apache.org>
This commit is contained in:
Maxim Antonov 2020-02-15 18:10:14 +01:00 committed by Jan Høydahl
parent c777db7c8a
commit cbf0eba176
1 changed files with 1 additions and 0 deletions

View File

@ -73,6 +73,7 @@ while [ -h "$SOLR_SCRIPT" ] ; do
fi
done
CDPATH='' # Prevent "file or directory not found" for 'cdpath' users
SOLR_TIP=`dirname "$SOLR_SCRIPT"`/..
SOLR_TIP=`cd "$SOLR_TIP"; pwd`
DEFAULT_SERVER_DIR="$SOLR_TIP/server"