From: Dennis Schafroth Date: Mon, 19 Aug 2013 10:47:14 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr X-Git-Tag: v0.4.11~4 X-Git-Url: http://git.indexdata.com/?p=lui-solr.git;a=commitdiff_plain;h=7a1eaa20bed48a160a94206363da1e004a6d6f65;hp=b367c50ad7f6db682799404c8dfd676372c1c593 Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/lui-solr --- diff --git a/commit_solr.sh b/commit_solr.sh deleted file mode 100644 index 0cb3a43..0000000 --- a/commit_solr.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ "$1" == "" ] ; then - echo "No database id given" - exit 1 ; -fi -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/debian/rules b/debian/rules index c637b09..140f88c 100755 --- a/debian/rules +++ b/debian/rules @@ -63,7 +63,8 @@ install-stamp: build # lui-solr-common. Install a Solr WAR. mkdir -p $(LUI_SOLR_COMMON_DIR) - cp dist/apache-solr-$(SOLR_VERSION).war -d $(LUI_SOLR_COMMON_DIR) + cp dist/apache-solr-$(SOLR_VERSION).war $(LUI_SOLR_COMMON_DIR) + cp -rp scripts $(LUI_SOLR_COMMON_DIR) # lui-solr-master mkdir -p $(LUI_SOLR_MASTER_SHARE_DIR) 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 1c22ed8..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 '' \ No newline at end of file diff --git a/scripts/commit_solr.sh b/scripts/commit_solr.sh new file mode 100644 index 0000000..6e3dff2 --- /dev/null +++ b/scripts/commit_solr.sh @@ -0,0 +1,17 @@ +#!/bin/bash +HOST_PORT=localhost:8080 + +if [ "$2" != "" ] ; then + HOST_PORT="$2" +fi + +PATH=solr4 +if [ "$2" != "" ] ; then + PATH="$2" +fi + +if [ "$1" == "-h" ] ; then + echo "$0 [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)" +fi + +curl http://$HOST:$PORT/$PATH/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..c5f9f85 --- /dev/null +++ b/scripts/delete_solr.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +HOST_PORT="localhost:8080" + +if [ "$2" != "" ] ; then + HOST_PORT="$2" +fi + +PATH=solr4 +if [ "$3" != "" ] ; then + PATH="$3" +fi + +if [ "$1" == "" ] ; then + echo "$0 databaseid [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)" + exit 1 ; +fi + +curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary "database:$1" +curl http://${HOST_PORT}/$PATH/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..d608b4a --- /dev/null +++ b/scripts/optimize_solr.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +HOST_PORT=localhost:8080 + +if [ "$2" != "" ] ; then + HOST_PORT="$2" +fi + +PATH=solr4 +if [ "$3" != "" ] ; then + PATH="$3" +fi + +if [ "$1" != "YES" ] ; then + echo "$0 YES [[HOST:PORT] PATH] (default $HOST_PORT/$PATH)" + exit 1 ; +fi + + +curl http://${HOST_PORT}/$PATH/update -H "Content-Type: text/xml" --data-binary ''