Skip to content

Commit

Permalink
allow docker users to disable the UI terminal via env
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Feb 9, 2025
1 parent f1395b7 commit 9c6fa26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
### UI Changes

- updates to the `uk.json` language file (#2348) (@xrust83)
- allow docker users to disable the UI terminal via env
- set `HOMEBRIDGE_CONFIG_UI_TERMINAL_ENABLED=0`
- note that this has not been extensively tested

### Other Changes

Expand Down
2 changes: 1 addition & 1 deletion src/core/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class ConfigService {
public runningInLinux = (!this.runningInDocker && !this.runningInSynologyPackage && !this.runningInPackageMode && platform() === 'linux')
public runningInFreeBSD = (platform() === 'freebsd')
public canShutdownRestartHost = (this.runningInLinux || process.env.UIX_CAN_SHUTDOWN_RESTART_HOST === '1')
public enableTerminalAccess = this.runningInDocker || this.runningInSynologyPackage || this.runningInPackageMode || Boolean(process.env.HOMEBRIDGE_CONFIG_UI_TERMINAL === '1')
public enableTerminalAccess = (this.runningInDocker && process.env.HOMEBRIDGE_CONFIG_UI_TERMINAL !== '0') || this.runningInSynologyPackage || this.runningInPackageMode || Boolean(process.env.HOMEBRIDGE_CONFIG_UI_TERMINAL === '1')

// Plugin management
public usePnpm = (process.env.UIX_USE_PNPM === '1')
Expand Down

0 comments on commit 9c6fa26

Please sign in to comment.