diff options
Diffstat (limited to 'bin/apicall.sh')
| -rwxr-xr-x | bin/apicall.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/apicall.sh b/bin/apicall.sh index 60d359167..50a3331ca 100755 --- a/bin/apicall.sh +++ b/bin/apicall.sh @@ -4,9 +4,9 @@ port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) pw=$(grep ^adminAccountBase64MD5= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) if which curl &>/dev/null; then - curl -s --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" > /dev/null + curl -s --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" elif which wget &>/dev/null; then - wget -q -t 1 --timeout=5 --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" -O /dev/null + wget -q -t 1 --timeout=120 --header "Authorization: realm=$pw" "http://127.0.0.1:$port/$1" -O - else exit 1 fi |
