homebridge / docker-homebridge

Homebridge Docker. HomeKit support for the impatient using Docker on x86_64, Raspberry Pi (armhf) and ARM64. Includes ffmpeg + libfdk-aac.
https://hub.docker.com/r/homebridge/homebridge/
GNU General Public License v3.0
2.59k stars 243 forks source link

`UIX_CUSTOM_PLUGIN_PATH` env var has no effect #553

Closed tjenkinson closed 7 months ago

tjenkinson commented 9 months ago

Describe The Bug

Hi,

I'd like to override the custom plugin location by setting the UIX_CUSTOM_PLUGIN_PATH env var but it has no effect.

I think this is due to this line

https://github.com/homebridge/homebridge-apt-pkg/blob/8b5e745806e3c6dc02f83e19bc7b7424bdef09f8/deb/opt/homebridge/start.sh#L40

setting the -P flag directly?

Maybe that should be updated to check for UIX_CUSTOM_PLUGIN_PATH and if set use that?

Thanks

Docker Config

docker run --net=host --name=homebridge -v $(pwd)/homebridge:/homebridge -v $(pwd)/homebridge_plugins:/homebridge_plugins -e UIX_CUSTOM_PLUGIN_PATH=/homebridge_plugins homebridge/homebridge:latest

Logs

[2/18/2024, 11:06:27 AM] [HB Supervisor] OS: Linux 4.4.302+ x64
[2/18/2024, 11:06:27 AM] [HB Supervisor] Node.js v18.19.0 /opt/homebridge/bin/node
[2/18/2024, 11:06:27 AM] [HB Supervisor] Homebridge Path: /var/lib/homebridge/node_modules/homebridge/bin/homebridge
[2/18/2024, 11:06:27 AM] [HB Supervisor] UI Path: /opt/homebridge/lib/node_modules/homebridge-config-ui-x/dist/bin/standalone.js
[2/18/2024, 11:06:29 AM] [Homebridge UI] Homebridge UI v4.55.1 is listening on :: port 8581
[2/18/2024, 11:06:29 AM] [HB Supervisor] Starting Homebridge with extra flags: -I -P /var/lib/homebridge/node_modules --strict-plugin-resolution
[2/18/2024, 11:06:29 AM] [HB Supervisor] Started Homebridge v1.7.0 with PID: 144

Host Operating System

Synology DSM 7

Host Architecture

x86_64 / amd64

github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 7 months ago

This issue has been closed as no further activity has occurred.