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.
pull/1/head
Michael Peter Christen 11 years ago
parent 937273d4e3
commit a909a3dbc4

@ -19,13 +19,7 @@ else
ID="id" ID="id"
fi fi
if [ "`$ID -u`" -eq 0 ] if [ ! -x "$JAVA" ]
then
echo
echo "For security reasons you should not run this script as root!"
echo
exit 1
elif [ ! -x "$JAVA" ]
then then
echo "The java command is not executable." echo "The java command is not executable."
echo "Either you have not installed java or it is not in your PATH" echo "Either you have not installed java or it is not in your PATH"
@ -139,7 +133,7 @@ then
fi fi
#turn on MMap for Solr if OS is a 64bit OS #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 ] if [ ! -f $CONFIGFILE -a -f DATA/SETTINGS/httpProxy.conf ]
then then

Loading…
Cancel
Save