mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
removed non-root restriction in startYACY.sh because that is also not
applied for the debian version. There is no reason to apply this restriction. Added also the -d64 option if the system is 64 bit.
This commit is contained in:
parent
937273d4e3
commit
a909a3dbc4
10
startYACY.sh
10
startYACY.sh
|
@ -19,13 +19,7 @@ else
|
|||
ID="id"
|
||||
fi
|
||||
|
||||
if [ "`$ID -u`" -eq 0 ]
|
||||
then
|
||||
echo
|
||||
echo "For security reasons you should not run this script as root!"
|
||||
echo
|
||||
exit 1
|
||||
elif [ ! -x "$JAVA" ]
|
||||
if [ ! -x "$JAVA" ]
|
||||
then
|
||||
echo "The java command is not executable."
|
||||
echo "Either you have not installed java or it is not in your PATH"
|
||||
|
@ -139,7 +133,7 @@ then
|
|||
fi
|
||||
|
||||
#turn on MMap for Solr if OS is a 64bit OS
|
||||
if [ -n "`uname -m | grep 64`" ]; then JAVA_ARGS="$JAVA_ARGS -Dsolr.directoryFactory=solr.MMapDirectoryFactory"; fi
|
||||
if [ -n "`uname -m | grep 64`" ]; then JAVA_ARGS="$JAVA_ARGS -d64 -Dsolr.directoryFactory=solr.MMapDirectoryFactory"; fi
|
||||
|
||||
if [ ! -f $CONFIGFILE -a -f DATA/SETTINGS/httpProxy.conf ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue
Block a user