Commit 0d120eb89a5f9c8ed404405d89fa128d41f38300
1 parent
e6be5137bc
Exists in
master
update install script to download data from /users/rey
Showing 1 changed file with 5 additions and 1 deletions Side-by-side Diff
install.sh
| ... | ... | @@ -139,6 +139,7 @@ |
| 139 | 139 | |
| 140 | 140 | |
| 141 | 141 | ### Speeral Configuration ### |
| 142 | +scp -r rey@nyx:~/OTMEDIA_DATA/Speeral $OTMEDIA_HOME/tools/ | |
| 142 | 143 | echo -e "\t${txtblu}Generating Speeral configuration files :${txtrst}\n" |
| 143 | 144 | cat $PWD/tools/Speeral/CFG/SpeeralFirstPass.xml.tmp | sed -e "s|<nom>[^<]*</nom>|<nom>$PWD/tools/Speeral/LEX/LEXIQUE_V6.speer</nom>|g" \ |
| 144 | 145 | | sed -e "s|<ngramme>[^<]*</ngramme>|<ngramme>$PWD/tools/Speeral/LM/ML_4gOTMEDIA_LEXIQUE_V6</ngramme>|g" \ |
| 145 | 146 | |
| ... | ... | @@ -191,8 +192,11 @@ |
| 191 | 192 | echo -e "\nTOMCAT : \t ${txtgrn}OK${txtrst}" |
| 192 | 193 | # SOLR secondly |
| 193 | 194 | 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 | |
| 194 | 198 | echo -e "Unzip SOLR DB\r" |
| 195 | - #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tgz" "$OTMEDIA_HOME/tools/SOLR/") | |
| 199 | + #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$OTMEDIA_HOME/tools/SOLR/") | |
| 196 | 200 | if [ $res -eq 2 ]; then echo " ${txtpur}NOT OK${txtrst}"; |
| 197 | 201 | else echo " ${txtgrn}OK${txtrst}"; fi |
| 198 | 202 | read -p "Enter SOLR server IP :" ip |