-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Describe The Bug
Please help me with this as I am trying to disable the terminal in the web interface in a designed and sanctioned way.
I read this shall be done by removing the line HOMEBRIDGE_CONFIG_UI_TERMINAL=1
from /etc/default/hombridge
, my system does not have this file and I cannot find this anywhere on my system.
My homebridge installation is running on a Raspberry PI 4B installed using this script https://github.com/homebridge/homebridge/wiki/Install-Homebridge-on-Raspbian
RPi4B runs Raspbian based on Debian GNU/Linux 12 (bookworm) updated to the latest available as of now.
Following this issue myself I found this logic:
File: /opt/homebridge/source.sh
export HOMEBRIDGE_APT_PACKAGE=1
enables the terminal.
File: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/core/config/config.service.js
Line 41: this.runningInPackageMode = Boolean(node_process_1.default.env.HOMEBRIDGE_APT_PACKAGE === '1');
Line 45: this.enableTerminalAccess = (this.runningInDocker && node_process_1.default.env.HOMEBRIDGE_CONFIG_UI_TERMINAL !== '0') || this.runningInSynologyPackage || this.runningInPackageMode || Boolean(node_process_1.default.env.HOMEBRIDGE_CONFIG_UI_TERMINAL === '1');
I think the inclusion of this.runningInPackageMode
is wrong here and does cause the terminal to be enabled on my system. It may be that the value of this.runningInPackageMode
is incorrectly set and shall be off.
Please note, I did not mess around with any source code, this is a clean installation and works very well. Personally, I like to disable to the terminal console in the web interface and this what I have found.
Could you please be so kind and check if what I am experiencing is the desired/correct behaviour?
If wrong, please fix this.
Thank you.
Logs
N/A
Config
N/A
Homebridge UI Version
4.71.2
Homebridge Version
1.9
Node.js Version
22.14.0
Operating System
Raspberry Pi OS / Raspbian
Environment Info
None
Raspberry Pi Model
Raspberry Pi 4 B