jitsi: Clean up

There's no need to extract the entire Jitsi tarball into
/federated/apps/jitsi - we only need gen-passwords.sh

Also document what the tarball in lib/files/jitsi is and
where it comes from.
This commit is contained in:
Bernhard "bero" Rosenkränzer (Boggins) 2024-10-21 16:32:19 +02:00
parent 4ba278e6aa
commit 66824e58e4
2 changed files with 8 additions and 2 deletions

View File

@ -0,0 +1,6 @@
The files here are unmodified copies of the tarballs at
https://github.com/jitsi/docker-jitsi-meet/tags
The only purpose is extracting `gen-passwords.sh`, so
it is ok for the file to be out of sync with the
container being used as long as that file remains unchanged.

View File

@ -17,8 +17,8 @@ config_jitsi() {
# chmod 644 /federated/apps/jitsi/data/config/keys/*.pem
fi
# Extract Jitsi into /federated/apps/jitsi
tar zxvf /federated/lib/files/jitsi/stable-* --strip-components 1 -C /federated/apps/jitsi &> /dev/null
# Extract Jitsi's gen-password.sh into /federated/apps/jitsi
tar zxvf /federated/lib/files/jitsi/stable-* --strip-components 1 --wildcards -C /federated/apps/jitsi '*/gen-passwords.sh' &> /dev/null
[ $? -ne 0 ] && fail "Couldn't extract files/jitsi/stable* into /federated/apps/jitsi"
# Create docker compose file