Skip to content

Commit

Permalink
always just drop a password.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Dec 6, 2024
1 parent 17b6cd5 commit 4dc58fc
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lucee/lucee.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,12 @@ Please review ${installer_installation_log}.</text>
<!-- this is needed for linux with 5.4, otherwise the server doesn't finish deploying properly and setting a password fails -->
<httpGet>
<url>http://127.0.0.1:${tomcatport}/lucee/admin/server.cfm</url>
<ruleList>
<portTest>
<condition>cannot_bind</condition>
<port>${tomcatport}</port>
</portTest>
</ruleList>
</httpGet>
<!--
<httpPost>
Expand Down Expand Up @@ -747,6 +753,7 @@ Please review ${installer_installation_log}.</text>
<customErrorMessage>${msg(warnings.LuceePostError)}: ${installer_error_message_original}</customErrorMessage>
<progressText>Securing Lucee Web Admins</progressText>
<actionList>
<!--
<xmlFileGet>
<attribute>hspw</attribute>
<element>/cfLuceeConfiguration</element>
Expand Down Expand Up @@ -782,22 +789,24 @@ Please review ${installer_installation_log}.</text>
</portTest>
</ruleList>
</xmlFileSet>

<!-- lucee 6 uses json rather than xml, install builder doesn't support json, so lets drop a password.txt -->
<createDirectory>
<path>${installdir}/tomcat/lucee-server/context/</path>
</createDirectory>

-->
<writeFile>
<path>${installdir}/tomcat/lucee-server/context/password.txt</path>
<text>${luceepass}</text>
<!--
<ruleList>
<fileExists negate="1">
<!-- other approach, check for .CFConfig.json -->

<path>${installdir}/tomcat/lucee-server/context/lucee-server.xml</path>
</fileExists>
</ruleList>
-->
</writeFile>
</actionList>
</actionGroup>
Expand Down

0 comments on commit 4dc58fc

Please sign in to comment.