From 0d120eb89a5f9c8ed404405d89fa128d41f38300 Mon Sep 17 00:00:00 2001 From: rey jean-Francois Date: Mon, 29 Jul 2013 12:40:49 +0200 Subject: [PATCH] update install script to download data from /users/rey --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9460c50..8907709 100755 --- a/install.sh +++ b/install.sh @@ -139,6 +139,7 @@ echo -e "SRILM toolkit : \t ${txtgrn}OK${txtrst}" ### Speeral Configuration ### +scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/ echo -e "\t${txtblu}Generating Speeral configuration files :${txtrst}\n" cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|[^<]*|$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer|g" \ | sed -e "s|[^<]*|$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6|g" \ @@ -191,8 +192,11 @@ then echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}" # SOLR secondly echo -e "\t${txtblu}Install SOLR DB${txtrst}" + echo -e "Download SOLR DB\r" + mkdir -p $OTMEDIA_HOME/tools/SOLR 2> /dev/null + scp -r rey@nyx:~/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR echo -e "Unzip SOLR DB\r" - #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tgz" "$OTMEDIA_HOME/tools/SOLR/") + #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/") if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}"; else echo " ${txtgrn}OK${txtrst}"; fi read -p "Enter SOLR server IP :" ip -- 1.8.2.3