下面就探讨对于license文件的处理,因为我们知道enterprise edition 文件是需要license 文件的而community edition是不需要license 文件的,所以我们分别处理。
因为我们在configure-helper.sh中已经对于ee还是ce版本进行了判断,通过liferay tomcat bundle的下载地址,参见http://supercharles888.blog.51cto.com/609344/979806
所以,我们这里只要做简单的判断,然后相应决定复制还是不复制:
代码如下:
- #if the liferay is an enterprise edition ,copy the license file to liferay home deploy folder
- ENTERPRISE_EDITION="ee"
- if [ $LIFERAY_SERVER_TYPE = $ENTERPRISE_EDITION ];
- then
- echo "Begin copying the liferay license file"
- echo "${LOG_TIME_FORMAT} Begin copying the liferay license file" >> $TODAYLOG
- if [ ! -d "$LIFERAY_AUTO_DEPLOY_DIR" ];
- then
- echo "the liferay home deploy folder doesn't exist ,begin creating this deploy folder"
- echo "${LOG_TIME_FORMAT}the liferay home deploy folder doesn't exist,begin creatin the deploy folder" >> $TODAYLOG
- cd $LIFERAY_HOME >> $TODAYLOG
- mkdir deploy >> $TODAYLOG
- echo "end creating this deploy folder"
- echo "${LOG_TIME_FORMAT} end creating this deploy folder" >> $TODAYLOG
- fi
- cp -rv "$CONFIGURATION_MODIFICATION_ROOT"/license*.xml $LIFERAY_HOME/deploy >> $TODAYLOG
- echo "End copying the liferay license file"
- echo "${LOG_TIME_FORMAT} End copying the liferay license file" >> $TODAYLOG
- fi
本文转自 charles_wang888 51CTO博客,原文链接:http://blog.51cto.com/supercharles888/979816,如需转载请自行联系原作者