Linux installer hardcodes lucee_ctl service name, preventing multiple Lucee installations side-by-side.
https://github.com/lucee/lucee-installer/actions/runs/19765897410
- Added
servicenameparameter to installer UI - Platform defaults: Windows =
Lucee, Linux =lucee - Linux control script becomes
${servicename}_ctl(e.g.,lucee_ctl,myapp_ctl) - Updated
service_config.shwith--nameparameter - Updated
change_user.shto accept service name as 4th argument - Updated
lucee.xmlto use${servicename}_ctleverywhere - Updated uninstaller to use configurable service name
- Fixed
checkGroupExists()- was usingid -ginstead ofgetent group - Fixed
rebuildControlScript()-mvfailed on fresh install when file doesn't exist - Fixed template name mismatch -
lucee.xmlreferencedengine_ctl_templatebut PR #35 renamed it tolucee_ctl_template
- Added
set -etolucee_ctl_template - Added
abortOnErrorandonErrorActionListto lucee.xml for the start command - Installer now fails immediately with clear error instead of waiting for Tomcat timeout
- Problem: Docker containers don't have
suin PATH or installed - First attempt: Changed
suto/usr/bin/su- failed on AlmaLinux wheresuis at/bin/su - Second attempt: Changed to
/bin/su- failed because AlmaLinuxalmalinux:latestdoesn't haveutil-linuxinstalled - Current fix: Added
run_as_owner()helper function that skipssuwhen current user matches target user
run_as_owner() {
if [ "$(id -un)" = "$TOMCAT_OWNER" ]; then
"$@"
else
/bin/su -p -s /bin/sh "$TOMCAT_OWNER" "$@"
fi
}| Platform | Container | Users Tested |
|---|---|---|
| Ubuntu x64 | Native runner | $USER, root, lucee |
| Ubuntu aarch64 | Native runner | $USER, root, lucee |
| Debian 12 | debian:12 | root, lucee |
| AlmaLinux | almalinux:latest | root, lucee |
| Windows | Native runner | N/A |
Line 392 in main.yml always uses --systemuser lucee regardless of matrix user variable.
When running as root with --systemuser lucee, the script still needs su which may not be installed in minimal containers.
lucee/lucee.xml- service name support, fail-fast, template name fixlucee/linux/sys/lucee_ctl_template-set -e,run_as_owner()functionlucee/linux/sys/change_user.sh- service name support, getent group fix, mv fixlucee/linux/sys/service_config.sh---nameparameterlucee/translations/messages.en.txt- renamed message keys
- Wait for CI to complete
- Check failed logs for actual error
- May need to install
util-linuxin CI workflow for AlmaLinux ifsuis still needed