jibri: check for chrome bin before pre-warm (#1757)
This commit is contained in:
committed by
GitHub
parent
648612f1bc
commit
140db223e3
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user