-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-config-solr.sh
executable file
·37 lines (33 loc) · 1.45 KB
/
install-config-solr.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env bash
#
# LICENCE
# This code is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This code is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# @author Thoralf Klein <[email protected]>
# @copyright Copyright (c) 2011, OPUS 4 development team
# @license http://www.gnu.org/licenses/gpl.html General Public License
# @version $Id: install.sh 8791 2011-08-03 11:34:33Z tklein $
set -e
CONFIG_INI="$1"
SOLR_INDEX_HOST="`echo "$2" |sed 's/\!/\\\!/g'`"
SOLR_INDEX_PORT="`echo "$3" |sed 's/\!/\\\!/g'`"
SOLR_INDEX_APP="`echo "$4" |sed 's/\!/\\\!/g'`"
SOLR_EXTRACT_HOST="`echo "$5" |sed 's/\!/\\\!/g'`"
SOLR_EXTRACT_PORT="`echo "$6" |sed 's/\!/\\\!/g'`"
SOLR_EXTRACT_APP="`echo "$7" |sed 's/\!/\\\!/g'`"
sed -e "[email protected]@!'$SOLR_INDEX_HOST'!" \
-e "[email protected]@!'$SOLR_INDEX_PORT'!" \
-e "[email protected]@!'$SOLR_INDEX_APP'!" \
-e "[email protected]@!'$SOLR_EXTRACT_HOST'!" \
-e "[email protected]@!'$SOLR_EXTRACT_PORT'!" \
-e "[email protected]@!'$SOLR_EXTRACT_APP'!" \
-i "$CONFIG_INI"
exit 0;