Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
more sh (i.e. /bin/dash instead of /bin/bash as sh) compatibility
allof0ed7f43c48c
diff --git a/startYACY.sh b/startYACY.shindex 9862876d5..9b5e86d27 100755--- a/startYACY.sh+++ b/startYACY.sh@@ -1,5 +1,5 @@#!/bin/sh-if [ $UID -eq 0 ]+if [ `id -u` -eq 0 ]thenechoecho "For security reasons you should not run this script as root!"@@ -43,23 +43,23 @@ DEBUG=0PRINTONLY=0for option in $options;doif [ $isparameter -ne 1 ];then #option- if [ x$option == "x-l" ];then+ if [ x$option = "x-l" ];thenLOGGING=1if [ $DEBUG -eq 1 ];thenecho "can not combine -l and -d"exit 1;fi- elif [ x$option == "x-d" ];then+ elif [ x$option = "x-d" ];thenDEBUG=1if [ $LOGGING -eq 1 ];thenecho "can not combine -l and -d"exit 1;fi- elif [ x$option == "x-p" ];then+ elif [ x$option = "x-p" ];thenPRINTONLY=1fi #which optionelse #parameter- if [ x$option == "--" ];then #option / parameter seperator+ if [ x$option = "--" ];then #option / parameter seperatorisparameter=1;continueelse@@ -83,7 +83,7 @@ fi# generating the proper classpathCLASSPATH=""#prefix=$(dirname $0);-#if [ x$prefix == "x." ];then+#if [ x$prefix = "x." ];then# prefix="";#else# prefix="$prefix/"