Commit b50ebdf386f824a5c217d5af6e05ca8fc527076d

Authored by Jean-François Rey
1 parent 0d120eb89a
Exists in master

update install.sh

Showing 1 changed file with 23 additions and 15 deletions Side-by-side Diff

... ... @@ -139,6 +139,7 @@
139 139  
140 140  
141 141 ### Speeral Configuration ###
  142 +echo -e "Download Speeral bin and data :"
142 143 scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/
143 144 echo -e "\t${txtblu}Generating Speeral configuration files :${txtrst}\n"
144 145 cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \
... ... @@ -192,21 +193,28 @@
192 193 echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}"
193 194 # SOLR secondly
194 195 echo -e "\t${txtblu}Install SOLR DB${txtrst}"
195   - echo -e "Download SOLR DB\r"
196   - mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null
197   - scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR
198   - echo -e "Unzip SOLR DB\r"
199   - #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/")
200   - if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}";
201   - else echo " ${txtgrn}OK${txtrst}"; fi
202   - read -p "Enter SOLR server IP :" ip
203   - if [ $ip == "" ];then ip="127.0.0.1";fi
204   - echo 'machine = "194.57.216.43"' > $OTMEDIA_HOME/tools/scripts/solrinfo.py
205   - read -p "Enter SOLR server port :" port
206   - if [ $port == "" ]; then port="8080";fi
207   - echo "\n\tSOLR server IP $ip"
208   - echo "\tSOLR server port $port"
209   - echo 'port = "8080"' >> $OTMEDIA_HOME/tools/scripts/solrinfo.py
  196 + read -p "You will need 300 Go of free space to install SOLR DB\nContinue ? (y/n) " solr
  197 + if [ "$solr" == "y" ]
  198 + then
  199 +
  200 + echo -e "Download SOLR DB\r"
  201 + mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null
  202 + scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR
  203 + echo -e "Unzip SOLR DB\r"
  204 + #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/")
  205 + if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}";
  206 + else echo " ${txtgrn}OK${txtrst}"; fi
  207 + read -p "Enter SOLR server IP :" ip
  208 + if [ $ip == "" ];then ip="127.0.0.1";fi
  209 + echo 'machine = "194.57.216.43"' > $OTMEDIA_HOME/tools/scripts/solrinfo.py
  210 + read -p "Enter SOLR server port :" port
  211 + if [ $port == "" ]; then port="8080";fi
  212 + echo "\n\tSOLR server IP $ip"
  213 + echo "\tSOLR server port $port"
  214 + echo 'port = "8080"' >> $OTMEDIA_HOME/tools/scripts/solrinfo.py
  215 + else
  216 + echo "Skipping SOLR install"
  217 + fi
210 218 fi
211 219  
212 220 ### Set Variables in bashrc ###