cdist-contrib-pedro-fork/type/__jitsi_jibri/files/update_files.sh

15 lines
680 B
Bash
Executable File

#!/bin/sh
set -e
# src https://github.com/jitsi/jibri#jitsi-debian-repository
wget https://download.jitsi.org/jitsi-key.gpg.key -O apt-jitsi-keyring.gpg
# src https://github.com/jitsi/jibri#google-chrome-stable--chromedriver
wget https://dl-ssl.google.com/linux/linux_signing_key.pub -O apt-google-chrome-keyring.gpg
curl chromedriver.storage.googleapis.com/LATEST_RELEASE > chrome-driver-version
cd_path='chromedriver_linux64.zip'
cd_url=https://chromedriver.storage.googleapis.com/$(cat chrome-driver-version)/chromedriver_linux64.zip
curl "${cd_url}" -z "${cd_path}" -o "${cd_path}"
printf "sha256:$(sha256sum chromedriver_linux64.zip | cut -d' ' -f1)" > chrome-driver-hash