diff --git a/jibri/rootfs/etc/services.d/40-jibri/run b/jibri/rootfs/etc/services.d/40-jibri/run index f62ce24..fe48181 100644 --- a/jibri/rootfs/etc/services.d/40-jibri/run +++ b/jibri/rootfs/etc/services.d/40-jibri/run @@ -4,7 +4,9 @@ HOME=/home/jibri DAEMON=/opt/jitsi/jibri/launch.sh +CHROME_BIN_PATH="$(which google-chrome)" +[ $? -ne 0 ] && CHROME_BIN_PATH="$(which chromium)" # pre-warm google chrome before jibri launches to ensure fast chrome launch during recordings -s6-setuidgid jibri /usr/bin/google-chrome --timeout=1000 --headless about:blank +[ -n "$CHROME_BIN_PATH" ] && s6-setuidgid jibri $CHROME_BIN_PATH --timeout=1000 --headless about:blank exec s6-setuidgid jibri /bin/bash -c "exec $DAEMON"