Bug Description
When a non-standard Hermes home location is set using HERMES_HOME as global environment variable (e.g. inside /etc/profile file), installing a system-wide Systemd unit does not carry over the variable value and always sets it as the default ~/.hermes folder for the current user.
See also #5947
Steps to Reproduce
- Set the
HERMES_HOME variable toba standard location (e.g. /etc/hermes-home)
- Install the gateway Systemd unit system-wide:
sudo hermes gateway install --system (note: the bug may also occur in case of user-scoped installation, but was not tested)
- Inspect the generated Systemd unit file
Expected Behavior
The Environment declaration for HERMES_HOME variable inside the unit file should honor the value of the globally set HERMES_HOME variable
Actual Behavior
The value of the HERMES_HOME variable inside the unit file is always hardcoded to the standard home location for the current user (~/.hermes)
Affected Component
Setup / Installation
Messaging Platform (if gateway-related)
No response
Operating System
Debian Trixie
Python Version
3.11.9
Hermes Version
0.8.0
Relevant Logs / Traceback
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?
Bug Description
When a non-standard Hermes home location is set using
HERMES_HOMEas global environment variable (e.g. inside/etc/profilefile), installing a system-wide Systemd unit does not carry over the variable value and always sets it as the default~/.hermesfolder for the current user.See also #5947
Steps to Reproduce
HERMES_HOMEvariable toba standard location (e.g./etc/hermes-home)sudo hermes gateway install --system(note: the bug may also occur in case of user-scoped installation, but was not tested)Expected Behavior
The
Environmentdeclaration forHERMES_HOMEvariable inside the unit file should honor the value of the globally setHERMES_HOMEvariableActual Behavior
The value of the
HERMES_HOMEvariable inside the unit file is always hardcoded to the standard home location for the current user (~/.hermes)Affected Component
Setup / Installation
Messaging Platform (if gateway-related)
No response
Operating System
Debian Trixie
Python Version
3.11.9
Hermes Version
0.8.0
Relevant Logs / Traceback
Root Cause Analysis (optional)
No response
Proposed Fix (optional)
No response
Are you willing to submit a PR for this?