summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2013-03-10 02:26:24 +0100
committerMichael Peter Christen <mc@yacy.net>2013-03-10 02:26:24 +0100
commit3d9ce9cd04014fa798f6b2514cf89029675651f0 (patch)
treef71b560dec824c057789c814fd5ee56807f947be /bin
parent252bb51f98580e471753212b454d5f847c30233c (diff)
- added more selection criteria for network seed list
- enhanced up script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/up.sh6
-rwxr-xr-xbin/up1.sh10
2 files changed, 4 insertions, 12 deletions
diff --git a/bin/up.sh b/bin/up.sh
index 2a57b6eb6..414ac16de 100755
--- a/bin/up.sh
+++ b/bin/up.sh
@@ -1,5 +1,7 @@
#!/bin/bash
cd "`dirname $0`"
-port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
-./up1.sh localhost:$port
+./apicall.sh "/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
+
+#port=$(grep ^port= ../DATA/SETTINGS/yacy.conf |cut -d= -f2)
+#./up1.sh localhost:$port
diff --git a/bin/up1.sh b/bin/up1.sh
deleted file mode 100755
index 17d88cc39..000000000
--- a/bin/up1.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-cd "`dirname $0`"
-if which curl &>/dev/null; then
- curl -s "http://$1/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
-elif which wget &>/dev/null; then
- wget -q -O - "http://$1/Network.xml?page=1&ip=" | awk '/<address>/{ gsub("<address>","" );gsub("<\/address>","" ); print $0 }' | awk '{print $1}';
-else
- exit 1
-fi
-