jibri: check for chrome bin before pre-warm (#1757)

This commit is contained in:
Aaron van Meerten
2024-03-12 12:55:39 -05:00
committed by GitHub
parent 648612f1bc
commit 140db223e3

View File

@@ -4,7 +4,9 @@
HOME=/home/jibri HOME=/home/jibri
DAEMON=/opt/jitsi/jibri/launch.sh 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 # 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" exec s6-setuidgid jibri /bin/bash -c "exec $DAEMON"