Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
if java executable not found using 'which', try to use 'command'
okybaca4b6ec7a13177
diff --git a/startYACY.sh b/startYACY.shindex 3ee15d88b..e1cac6ba5 100755--- a/startYACY.sh+++ b/startYACY.sh@@ -20,16 +20,24 @@ elseID="id"fi+# if java executable not found using 'which', let's try 'command'+if [ ! -x "$JAVA" ]+then+ JAVA="`command -v java`"+fi+if [ ! -x "$JAVA" ]thenecho "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."+ echo "You can also set a path to java manually, in \$JAVA option of $0 script."#Cron supports setting the path in#echo "Has this script been invoked by CRON?"#echo "if so, please set PATH in the crontab, or set the correct path in the variable in this script."exit 1fi+usage() {cat - <<USAGEstartscript for YaCy on UNIX-like systems