Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

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.

Michael Peter Christena909a3dbc4c8
diff --git a/startYACY.sh b/startYACY.sh
index 7d3c6508d..ef59f49bf 100755
--- a/startYACY.sh
+++ b/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