Explorar el Código

Adding missing check for software/src directory in installLabkey.sh

Andrej Studen hace 2 años
padre
commit
2062ddc1fb
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      bin/installLabkey.sh

+ 6 - 0
bin/installLabkey.sh

@@ -25,6 +25,11 @@ SFW_SRC=$HOME/software/packages/$LABKEY.tar.gz
 LABKEY_BASE=$HOME/labkey
 LABKEY_BASE=$HOME/labkey
 SFW_DIR=$HOME/software/src
 SFW_DIR=$HOME/software/src
 
 
+if [ ! -d ${SFW_DIR} ] ; 
+then
+	mkdir ${SFW_DIR};
+fi;
+
 if [ ! -d $LABKEY_BASE ] ; 
 if [ ! -d $LABKEY_BASE ] ; 
 then
 then
 	mkdir $LABKEY_BASE;
 	mkdir $LABKEY_BASE;
@@ -33,6 +38,7 @@ fi;
 CFG_DIR=$HOME/config
 CFG_DIR=$HOME/config
 LABKEY_DIR=$SFW_DIR/$LABKEY;
 LABKEY_DIR=$SFW_DIR/$LABKEY;
 
 
+
 LINK_DIRS=("tomcat-lib" "labkeywebapp" "modules" "pipeline-lib")
 LINK_DIRS=("tomcat-lib" "labkeywebapp" "modules" "pipeline-lib")
 
 
 if [ ! -d ${LABKEY_DIR} ] ; then
 if [ ! -d ${LABKEY_DIR} ] ; then