From 2d07a442a64b1c1771423d8c2a89532ebc5246f2 Mon Sep 17 00:00:00 2001 From: Michael Born <8106227+michaelborn@users.noreply.github.com> Date: Tue, 13 Feb 2024 11:53:13 -0500 Subject: [PATCH] Update ORM extension installation method to use env vars It seems CommandBox is not correctly passing the jvm args to Lucee, hence the extension installation fails (and thus ContentBox installation fails.) Use an env var, as this works and seems more bulletproof. --- commands/contentbox/install.cfc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/contentbox/install.cfc b/commands/contentbox/install.cfc index a3d35de..d1664b7 100644 --- a/commands/contentbox/install.cfc +++ b/commands/contentbox/install.cfc @@ -200,7 +200,8 @@ component { command( "server set app.cfengine=#arguments.cfmlEngine#" ).run(); command( "server set web.rewrites.enable=true" ).run(); command( "server set jvm.heapsize=768" ).run(); - command( "server set jvm.args=-Dfile.encoding=UTF8 -Dcom.sun.net.ssl.enableECC=false -Dlucee-extensions=D062D72F-F8A2-46F0-8CBC91325B2F067B" ).run(); + command( "server set jvm.args=-Dfile.encoding=UTF8 -Dcom.sun.net.ssl.enableECC=false" ).run(); + command( "server set env.lucee-extensions=D062D72F-F8A2-46F0-8CBC91325B2F067B" ).run(); // 2021+ cfpm installs if ( arguments.cfmlEngine.findNoCase( "adobe@202" ) ) {