summaryrefslogtreecommitdiff
path: root/updateYACY.sh
blob: 0e2d8c125f39a9fea3c12c696c9d5ca047f187fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env sh
cd `dirname $0`

if [ -x `which wget` ]
then
	bin/apicall.sh "ConfigUpdate_p.html?autoUpdate="

elif [ -x `which java` ]
then
	# generating the proper classpath
	CLASSPATH=""
	for N in lib/*.jar; do CLASSPATH="$CLASSPATH$N:"; done	
	for N in libx/*.jar; do CLASSPATH="$CLASSPATH$N:"; done

	java -classpath classes:htroot:$CLASSPATH yacy -update

else
	port=`cat DATA/SETTINGS/yacy.conf |grep "^port="|sed "s/.*=//"`
	echo "Neither wget nor java could be found or are not executable."
fi