diff --git a/install.sh b/install.sh index 1f7e7cf..0efdede 100755 --- a/install.sh +++ b/install.sh @@ -133,7 +133,7 @@ fi echo -e "iconv : \t ${txtgrn}OK${txtrst}" ## SRI LM -if [ -z "$SRILM" ] && [ -z "$MACHINE_TYPE" ] +if [ -z "$SRILM" ] || [ -z "$MACHINE_TYPE" ] then echo -e "${txtred}ERROR${txtrst} SRILM toolkit variables are not defined (SRILM and MACHINE_TYPE)\n You have to install SRILM Toolkit\n" exit 1; @@ -214,7 +214,7 @@ then scp -r ${username}@nyx:/local/OTMEDIA/OTMEDIA_DATA/SOLR/otmedia-2013-04.tar.gz $OTMEDIA_HOME/tools/SOLR echo -e "Unzip SOLR DB\r" res=0 - #res = $(tar -xvzf "$OTMEDIA_HOME/tools/SOLR/otmedia-2013-04.tar.gz" "$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 " ${txtred}NOT OK${txtrst}"; else echo " ${txtgrn}OK${txtrst}"; fi else