mirror of
				https://github.com/yacy/yacy_search_server.git
				synced 2025-10-30 23:46:12 -04:00 
			
		
		
		
	and verification in transaction manager which did not have and exception for localhost/basic authentication
		
			
				
	
	
		
			21 lines
		
	
	
		
			518 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			518 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env sh
 | |
| cd `dirname $0`
 | |
| 
 | |
| if [ -x `which wget` ]
 | |
| then
 | |
| 	bin/apicall.sh "ConfigUpdate_p.html?autoUpdate=" > /dev/null
 | |
| 
 | |
| 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
 |