File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,11 @@ initContainers:
7777 cp -frv /opt/liferay/data/* /temp/liferay/data
7878 fi
7979
80- if [ -d /opt /liferay/deploy ] && [ -z "$(ls -A /temp/liferay/deploy/*license* 2>/dev/null )" ]
80+ if [ ! -d /temp /liferay/glowroot ] || [ -z "$(ls -A /temp/liferay/glowroot )" ]
8181 then
82- if [ ! -d /temp/liferay/data/license ] || [ -z "$(ls -A /temp/liferay/data/license/*.li)" ]
83- then
84- mkdir -p /temp/liferay/deploy
82+ mkdir -p /temp/liferay/glowroot
8583
86- cp -fv /opt/liferay/deploy/* /temp/liferay/deploy
87- fi
84+ cp -frv /opt/liferay/glowroot/* /temp/liferay/glowroot
8885 fi
8986
9087 if [ ! -f /temp/tomcat/conf/server.xml ]
@@ -118,11 +115,14 @@ initContainers:
118115 sed -i '/<Engine/r'<(echo "${SERVER_XML_CLUSTER}") /temp/tomcat/conf/server.xml
119116 fi
120117
121- if [ ! -d /temp /liferay/glowroot ] || [ -z "$(ls -A /temp/liferay/glowroot )" ]
118+ if [ -d /opt /liferay/deploy ] && [ -z "$(ls -A /temp/liferay/deploy/*license* 2>/dev/null )" ]
122119 then
123- mkdir -p /temp/liferay/glowroot
120+ if [ ! -d /temp/liferay/data/license ] || [ -z "$(ls -A /temp/liferay/data/license/*.li)" ]
121+ then
122+ mkdir -p /temp/liferay/deploy
124123
125- cp -frv /opt/liferay/glowroot/* /temp/liferay/glowroot
124+ cp -fv /opt/liferay/deploy/* /temp/liferay/deploy
125+ fi
126126 fi
127127 image: {{ printf "%s:%s" .image.repository (.image.tag | toString) }}
128128 imagePullPolicy: {{ .image.pullPolicy }}
You can’t perform that action at this time.
0 commit comments