From 95a4fc5eca1fc1d4c6c0a2738b00042eb98d0f75 Mon Sep 17 00:00:00 2001 From: rey jean-Francois Date: Fri, 9 Aug 2013 15:33:14 +0200 Subject: [PATCH] up --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.8.2.3