mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
aef9dd0350
- added cleaning of blacklist cache if cache is modified in interface - extended cache saving to all cache types - moved cache location to DATA/LISTS - fixed static file path which was relative to the application path but should be relative to data path - which is different in debian and mac implementations
13 lines
537 B
Bash
Executable File
13 lines
537 B
Bash
Executable File
#!/bin/bash
|
|
cd "`dirname $0`"
|
|
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
|
|
if which curl &>/dev/null; then
|
|
curl -s "http://localhost:$port/yacysearch.rss?resource=local&verify=false&query=$1" | awk '/^<link>/{ gsub("<link>","" );gsub("<\/link>","" ); print $0 }'
|
|
elif which wget &>/dev/null; then
|
|
wget -q -O - "http://localhost:$port/yacysearch.rss?resource=local&verify=false&query=$1" | awk '/^<link>/{ gsub("<link>","" );gsub("<\/link>","" ); print $0 }'
|
|
else
|
|
echo "Neither curl nor wget installed!"
|
|
exit 1
|
|
fi
|
|
|