Writing bash script for quick install jitsi-meet without "any touch"!

@damencho
I want to write quick-install script to install jitsi-meet without any touch.
that means without asking you about host-name, ssl certificate oprions and your email for let’s encrypt certbot.

every thing will be provided from the beginning.
for example:
“script.bash --host-name www.jitsi-example.com --email someone@example.com --let’s-encrypt”

this will make it quicker without need any user action during the installation

how can I did it?

echo 'deb https://download.jitsi.org stable/' >> /etc/apt/sources.list.d/jitsi-stable.list
wget -qO -  https://download.jitsi.org/jitsi-key.gpg.key | sudo apt-key add -
echo "jitsi-videobridge jitsi-videobridge/jvb-hostname string meet.domain.com" | debconf-set-selections
echo "jitsi-meet-web-config jitsi-meet/cert-choice select 'Generate a new self-signed certificate (You will later get a chance to obtain a Let's encrypt certificate)'" | debconf-set-selections
apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install jitsi-meet
2 Likes