From 2b52626c1213e6bf757b609316ea027a330da926 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Mon, 19 Aug 2013 12:25:28 +0200 Subject: [PATCH] Moved scripts --- commit_solr.sh | 4 ---- delete_solr.sh | 14 -------------- optimize_solr.sh | 14 -------------- scripts/commit_solr.sh | 4 ++++ scripts/delete_solr.sh | 14 ++++++++++++++ scripts/optimize_solr.sh | 14 ++++++++++++++ 6 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 commit_solr.sh delete mode 100755 delete_solr.sh delete mode 100755 optimize_solr.sh create mode 100644 scripts/commit_solr.sh create mode 100755 scripts/delete_solr.sh create mode 100755 scripts/optimize_solr.sh diff --git a/commit_solr.sh b/commit_solr.sh deleted file mode 100644 index 2b3f6c3..0000000 --- a/commit_solr.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -HOST=localhost -PORT=8080 -curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '' \ No newline at end of file diff --git a/delete_solr.sh b/delete_solr.sh deleted file mode 100755 index 2b91d65..0000000 --- a/delete_solr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -if [ "$1" == "" ] ; then - echo "$0 databaseid [HOST:PORT] " - exit 1 ; -fi -HOSTPORT="localhost:8080" - -if [ "$2" != "" ] ; then - HOSTPORT="$2" -fi - -curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary "database:$1" -curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary '' diff --git a/optimize_solr.sh b/optimize_solr.sh deleted file mode 100755 index bb4127d..0000000 --- a/optimize_solr.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -if [ "$1" != "YES" ] ; then - echo "No confirmation given" - exit 1 ; -fi - -HOST_PORT=localhost:8080 - -if [ "$2" != "" ] ; then - HOST_PORT="$2" -fi - -curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '' diff --git a/scripts/commit_solr.sh b/scripts/commit_solr.sh new file mode 100644 index 0000000..2b3f6c3 --- /dev/null +++ b/scripts/commit_solr.sh @@ -0,0 +1,4 @@ +#!/bin/bash +HOST=localhost +PORT=8080 +curl http://$HOST:$PORT/solr/update -H "Content-Type: text/xml" --data-binary '' \ No newline at end of file diff --git a/scripts/delete_solr.sh b/scripts/delete_solr.sh new file mode 100755 index 0000000..2b91d65 --- /dev/null +++ b/scripts/delete_solr.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "$1" == "" ] ; then + echo "$0 databaseid [HOST:PORT] " + exit 1 ; +fi +HOSTPORT="localhost:8080" + +if [ "$2" != "" ] ; then + HOSTPORT="$2" +fi + +curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary "database:$1" +curl http://${HOSTPORT}/solr/update -H "Content-Type: text/xml" --data-binary '' diff --git a/scripts/optimize_solr.sh b/scripts/optimize_solr.sh new file mode 100755 index 0000000..bb4127d --- /dev/null +++ b/scripts/optimize_solr.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "$1" != "YES" ] ; then + echo "No confirmation given" + exit 1 ; +fi + +HOST_PORT=localhost:8080 + +if [ "$2" != "" ] ; then + HOST_PORT="$2" +fi + +curl http://${HOST_PORT}/solr/update -H "Content-Type: text/xml" --data-binary '' -- 1.7.10.4