*) replaced all shebangs with more universal versions
pull/1/head
Marc Nause 10 years ago
parent 1fdcc2d67b
commit 8d1b66accc

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cd /tmp cd /tmp
FILE=`tempfile`.html FILE=`tempfile`.html
wget "$1" -O $FILE -k wget "$1" -O $FILE -k

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# init script for the HTTP Proxy: YaCy # init script for the HTTP Proxy: YaCy
# #

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# #
# init script for the HTTP Proxy: YaCy # init script for the HTTP Proxy: YaCy
# #

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/Load_RSS_p.html?indexAllItemContent=&repeat=off&url=$1" > /dev/null ./apicall.sh "/Load_RSS_p.html?indexAllItemContent=&repeat=off&url=$1" > /dev/null

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
admin=$(grep ^adminAccountUserName= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) admin=$(grep ^adminAccountUserName= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
pw=$(grep ^adminAccountBase64MD5= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) pw=$(grep ^adminAccountBase64MD5= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
# for a production environment with high-availability requirement, # for a production environment with high-availability requirement,

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`/.." cd "`dirname $0`/.."
for i in DATA/INDEX/* ; do for i in DATA/INDEX/* ; do
if [ -d "$i" ]; then if [ -d "$i" ]; then

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.html?deletecomplete=&deleteIndex=on&deleteSolr=on&deleteCrawlQueues=on&deleteRobots=on&deleteSearchFl=on&deleteCache=on" > /dev/null ./apicall.sh "/IndexControlURLs_p.html?deletecomplete=&deleteIndex=on&deleteSolr=on&deleteCrawlQueues=on&deleteRobots=on&deleteSearchFl=on&deleteCache=on" > /dev/null

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/Tables_p.html?table=api&deletetable=all" > /dev/null ./apicall.sh "/Tables_p.html?table=api&deletetable=all" > /dev/null

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.html?deleteIndex=off&deleteSolr=off&deleteCache=on&deleteCrawlQueues=off&deleteRobots=on&deleteSearchFl=on&deletecomplete=" > /dev/null ./apicall.sh "/IndexControlURLs_p.html?deleteIndex=off&deleteSolr=off&deleteCache=on&deleteCrawlQueues=off&deleteRobots=on&deleteSearchFl=on&deletecomplete=" > /dev/null

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.html?deletecomplete=&deleteIndex=on&deleteSolr=on&deleteCrawlQueues=on&deleteRobots=on&deleteSearchFl=on&deleteCache=off" > /dev/null ./apicall.sh "/IndexControlURLs_p.html?deletecomplete=&deleteIndex=on&deleteSolr=on&deleteCrawlQueues=on&deleteRobots=on&deleteSearchFl=on&deleteCache=off" > /dev/null

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.html?urlhashdeleteall=&urlstring=$1" > /dev/null ./apicall.sh "/IndexControlURLs_p.html?urlhashdeleteall=&urlstring=$1" > /dev/null

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
cd .. cd ..
./stopYACY.sh ./stopYACY.sh

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
if which curl &>/dev/null; then if which curl &>/dev/null; then

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
java -ea -cp ../classes:../lib/yacycore.jar net.yacy.kelondro.logging.ThreadDump -f $1 java -ea -cp ../classes:../lib/yacycore.jar net.yacy.kelondro.logging.ThreadDump -f $1

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cd "`dirname $0`" cd "`dirname $0`"
for N in `cat $1`; do for N in `cat $1`; do
echo import of $N: echo import of $N:

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh /IndexImportMediawiki_p.html?file=$1 > /dev/null ./apicall.sh /IndexImportMediawiki_p.html?file=$1 > /dev/null

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/Crawler_p.html?bookmarkFolder=/crawlStart&crawlingDomMaxPages=10000&intention=&range=domain&indexMedia=on&recrawl=nodoubles&storeHTCache=on&sitemapURL=&repeat_time=7&crawlingQ=on&crawlingIfOlderUnit=day&cachePolicy=ifexist&indexText=on&crawlingMode=file&crawlingURL=http://&bookmarkTitle=&mustnotmatch=&crawlingstart=import&mustmatch=.*&crawlingIfOlderNumber=7&repeat_unit=seldays&crawlingDepth=0&crawlingFile=$1" > /dev/null ./apicall.sh "/Crawler_p.html?bookmarkFolder=/crawlStart&crawlingDomMaxPages=10000&intention=&range=domain&indexMedia=on&recrawl=nodoubles&storeHTCache=on&sitemapURL=&repeat_time=7&crawlingQ=on&crawlingIfOlderUnit=day&cachePolicy=ifexist&indexText=on&crawlingMode=file&crawlingURL=http://&bookmarkTitle=&mustnotmatch=&crawlingstart=import&mustmatch=.*&crawlingIfOlderNumber=7&repeat_unit=seldays&crawlingDepth=0&crawlingFile=$1" > /dev/null

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.xml?indexdump=" | awk '/<dumpfile>/{ gsub("<dumpfile>","" );gsub("<\/dumpfile>","" ); print $0 }' | awk '{print $1}'; ./apicall.sh "/IndexControlURLs_p.xml?indexdump=" | awk '/<dumpfile>/{ gsub("<dumpfile>","" );gsub("<\/dumpfile>","" ); print $0 }' | awk '{print $1}';

@ -1,3 +1,3 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/IndexControlURLs_p.xml?indexrestore=&dumpfile=$1" > /dev/null ./apicall.sh "/IndexControlURLs_p.xml?indexrestore=&dumpfile=$1" > /dev/null

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/ConfigAccounts_p.html?setAdmin=&adminuser=admin&adminpw1=$1&adminpw2=$1&access=" > /dev/null ./apicall.sh "/ConfigAccounts_p.html?setAdmin=&adminuser=admin&adminpw1=$1&adminpw2=$1&access=" > /dev/null
echo "Password for User Name 'admin' set to '$1'" echo "Password for User Name 'admin' set to '$1'"

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
./search1.sh -y localhost:$port "$1" ./search1.sh -y localhost:$port "$1"

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
if which curl &>/dev/null; then if which curl &>/dev/null; then
while getopts "ys" opt; do while getopts "ys" opt; do

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2) port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
./searchall1.sh -s localhost:$port $1 ./searchall1.sh -s localhost:$port $1

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cd "`dirname $0`" cd "`dirname $0`"
S=`date "+%s"` S=`date "+%s"`
C=0 C=0

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cd "`dirname $0`" cd "`dirname $0`"
./searchtest.sh ../test/words/searchtest.words.aa & ./searchtest.sh ../test/words/searchtest.words.aa &
sleep 1 sleep 1

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
cd "`dirname $0`" cd "`dirname $0`"
./apicall.sh "/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}'; ./apicall.sh "/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
# THIS IS ONLY FOR EMERGENCY CASES # THIS IS ONLY FOR EMERGENCY CASES
# To stop YaCy, use stopYACY.sh # To stop YaCy, use stopYACY.sh

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# THIS SCRIPT CAN BE USED TO EDIT SOME BASIC SETTINGS OF YACY # THIS SCRIPT CAN BE USED TO EDIT SOME BASIC SETTINGS OF YACY
# #

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
JAVA="`which java`" JAVA="`which java`"
CONFIGFILE="DATA/SETTINGS/yacy.conf" CONFIGFILE="DATA/SETTINGS/yacy.conf"
LOGFILE="yacy.log" LOGFILE="yacy.log"

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cd `dirname $0` cd `dirname $0`
bin/apicall.sh "Steering.html?shutdown=true" > /dev/null bin/apicall.sh "Steering.html?shutdown=true" > /dev/null

@ -1,4 +1,4 @@
#!/bin/sh #!/usr/bin/env sh
cd `dirname $0` cd `dirname $0`
if [ -x `which wget` ] if [ -x `which wget` ]

Loading…
Cancel
Save