Inital commit

This commit is contained in:
2020-10-22 16:47:36 +02:00
commit bc77502b0d
16 changed files with 795 additions and 0 deletions

27
JMS/preconf.sh Normal file
View File

@@ -0,0 +1,27 @@
#module setup
mrepo=https://git.ictmaatwerk.com/VPS-scripts/MeetServer
mbranch=main/JMS
#setup repo
curl --retry 7 --retry-delay 5 -s https://git.ictmaatwerk.com/VPS-scripts/General/raw/branch/Main/Setup-Repo.sh |repo=jitsi osrel=$shortdist bash > $OUTPUT 2>&1
#preconf jitsi
debconf-set-selections <<< "jitsi-videobridge2 jitsi-videobridge/jvb-hostname string $domain"
debconf-set-selections <<< "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)"
# Package list for Scalable
if [ "$jitsipack" = "sc" ] ; then
jvbsec=${cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 16}
debconf-set-selections <<< "jitsi-meet-prosody jitsi-videobridge/jvbsecret password $jvbsec"
echo "jitsi-meet-web jitsi-meet-web-config jitsi-meet-prosody jicofo jitsi-meet-turnserver prosody" >> /tmp/pkg.list
fi
# Package list for standalone
if [ "$jitsipack" = "sa" ] ; then
echo "jitsi-meet jitsi-meet-turnserver " >> /tmp/pkg.list
fi
# Packge list to allow for external connections
if [ "$extcon" = "1" ] ; then
echo "dnsmasq" >> /tmp/pkg.list
fi