From bf75ba339e1336f269106f2443b9cd22d9fca37a Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sat, 25 Apr 2026 17:14:20 +0200 Subject: [PATCH] svc-selkies: honor SELKIES_MODE env var in run script Selkies's argument parser declares a `mode` setting with `env_var: SELKIES_MODE` that selects between `websockets` (default) and `webrtc`. The s6 run script for svc-selkies hardcodes `--mode="websockets"` which overrides the env var and forces every container into websocket-mode regardless of the user's `-e SELKIES_MODE=webrtc` setting. Replace the hardcoded value with `${SELKIES_MODE:-websockets}` so the existing default is preserved while the documented env var actually takes effect. Both the production exec and the DEV_MODE branch are updated for consistency. --- root/etc/s6-overlay/s6-rc.d/svc-selkies/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/s6-overlay/s6-rc.d/svc-selkies/run b/root/etc/s6-overlay/s6-rc.d/svc-selkies/run index fef8dc7..15cba7d 100755 --- a/root/etc/s6-overlay/s6-rc.d/svc-selkies/run +++ b/root/etc/s6-overlay/s6-rc.d/svc-selkies/run @@ -55,7 +55,7 @@ if [ ! -z ${DEV_MODE+x} ]; then nodemon -V --ext py --exec \ "python3" -m selkies \ --addr="localhost" \ - --mode="websockets" \ + --mode="${SELKIES_MODE:-websockets}" \ --debug="true" fi @@ -63,4 +63,4 @@ fi exec s6-setuidgid abc \ selkies \ --addr="localhost" \ - --mode="websockets" + --mode="${SELKIES_MODE:-websockets}"