|
@@ -52,19 +52,28 @@ fi;
|
|
|
cd ${TMP_DIR} && tar xvzf ${SFW_SRC};
|
|
|
echo "Using distribution in ${TMP_LABKEY}";
|
|
|
|
|
|
-#LINK_DIRS=("tomcat-lib" "labkeywebapp" "modules" "pipeline-lib")
|
|
|
-LABKEY_DIRS=("labkeywebapp" "modules" "pipeline-lib")
|
|
|
-
|
|
|
#copy from $TMP_LABKEY to labkey space in docker
|
|
|
-for d in ${LABKEY_DIRS[@]} ;
|
|
|
+LABKEY_SRC_DIRS=("labkeywebapp" "modules" "pipeline-lib")
|
|
|
+
|
|
|
+for d in ${LABKEY_SRC_DIRS[@]} ;
|
|
|
do
|
|
|
mv ${TMP_LABKEY}/$d ${LABKEY_DIR}/$d;
|
|
|
done;
|
|
|
|
|
|
+#check if required dirs are missing and create them
|
|
|
+LABKEY_DIRS=("files" "externalModules")
|
|
|
+
|
|
|
+for d in ${LABKEY_DIRS[@]} ;
|
|
|
+do
|
|
|
+ if [ ! -d ${LABKEY_DIR}/$d ] ; then
|
|
|
+ mkdir ${LABKEY_DIR}/$d;
|
|
|
+ fi;
|
|
|
+done;
|
|
|
+
|
|
|
#tomcat-lib goes to tomcat8 user space in docker
|
|
|
-mv ${TMP_LABKEY}/tomcat-lib ${TOMCAT_DIR/lib
|
|
|
+mv ${TMP_LABKEY}/tomcat-lib ${TOMCAT_DIR}/lib
|
|
|
|
|
|
echo "Cleanup";
|
|
|
-#rm -rf ${TMP_LABKEY}
|
|
|
+rm -rf ${TMP_LABKEY}
|
|
|
|
|
|
echo "Done"
|