#!/usr/bin/env bash
KEY_DIR=/etc/apt/keyrings
cat > /etc/apt/sources.list-available/jitsi-stable.list << 'EOF'
 # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo tee ${KEY_DIR}/jitsi.gpg
deb http://download.jitsi.org  stable/
EOF

cat > /etc/apt/sources.list-available/jitsi-testing.list << 'EOF'
 # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo tee ${KEY_DIR}/jitsi.gpg
deb http://download.jitsi.org  testing/
EOF

# Nightly
cat > /etc/apt/sources.list-available/jitsi-unstable.list << 'EOF'
 # wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo tee ${KEY_DIR}/jitsi.gpg
deb http://download.jitsi.org  unstable/
EOF

ln -sf /etc/apt/sources.list-available/jitsi-unstable.list /etc/apt/sources.list.d/jitsi-unstable.list

wget -qO - https://download.jitsi.org/jitsi-key.gpg.key | sudo tee ${KEY_DIR}/jitsi.gpg


# Update your package list:

apt update

# Install the full suite:

apt install -y jitsi-meet

# or only the packages you need like for example:

#apt install -y jicofo
#apt install -y jigasi
#apt install -y jitsi
#apt install -y jitsi-archive-keyring
#apt install -y jitsi-meet
#apt install -y jitsi-meet-prosody
#apt install -y jitsi-meet-tokens
#apt install -y jitsi-meet-web
#apt install -y jitsi-meet-web-config
#apt install -y jitsi-videobridge

