#!/bin/sh -e JIBRI_HOST="${__target_host}" JIBRI_AUTH_PASS='jibriauthpass' JIBRI_RECORDER_PASS='jibrirecorderpass' export JIBRI_HOST export JIBRI_AUTH_PASS export JIBRI_RECORDER_PASS os="$(cat "${__global}/explorer/os")" kernel_release="$(cat "${__object}/explorer/kernel_release")" case "${os}" in devuan|debian) if echo "${kernel_release}" | grep -qE "cloud|rt"; then echo "using wrong kernel ${kernel_release}, do/use: apt install linux-image-amd64" >&2 exit 1 fi ;; #ubuntu) #;; # TODO on ubuntu you should also care about installing: # linux-image-extra-virtual # and to check for different kernel # src https://github.com/jitsi/jibri#installation-notes *) echo "Your OS '${os}' is currently not supported." >&2 exit 1 ;; esac __line '/etc/modules' --line 'snd_aloop' --onchange 'modprobe snd_aloop' # thanks https://github.com/emrahcom/emrah-buster-templates/blob/master/machines/eb-jibri-template/usr/local/bin/finalize_recording.sh __file '/opt/finalize_recording.sh' \ --mode '755' \ --source '-' << EOF # Managed remotely, changes will be lost #!/bin/sh set -e exit 0 EOF __apt_key 'jitsi_meet' \ --source "${__type}/files/apt-jitsi-keyring.gpg" require='__apt_key/jitsi_meet' __apt_source 'jitsi_meet' \ --uri 'https://download.jitsi.org' \ --distribution 'stable/' __apt_key 'google-chrome' \ --source "${__type}/files/apt-google-chrome-keyring.gpg" __apt_source 'debian9' \ --uri 'http://security.debian.org/debian-security' \ --distribution 'stretch/updates' \ --component 'main' # google-chrome object id is important because after google-chrome installation # the apt file would be duplicated, making apt update process to fail require='__apt_key/google-chrome' __apt_source google-chrome \ --uri 'http://dl.google.com/linux/chrome/deb/' \ --distribution 'stable' \ --component 'main' ## Ensure apt cache is up-to-date require='__apt_source/jitsi_meet __apt_source/google-chrome __apt_source/debian9' __check_messages update_jibri \ --pattern '^__apt_source/(jitsi_meet|google-chrome)' \ --execute 'apt update' PKGS="$( grep -v '#' <