From 66824e58e443f8a29ddea89f1ea0368e2f053511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Rosenkr=C3=A4nzer?= Date: Mon, 21 Oct 2024 16:32:19 +0200 Subject: [PATCH] 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. --- lib/files/jitsi/README.md | 6 ++++++ lib/jitsi.sh | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 lib/files/jitsi/README.md diff --git a/lib/files/jitsi/README.md b/lib/files/jitsi/README.md new file mode 100644 index 0000000..1f1a0da --- /dev/null +++ b/lib/files/jitsi/README.md @@ -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. diff --git a/lib/jitsi.sh b/lib/jitsi.sh index cfec81c..7d7b190 100644 --- a/lib/jitsi.sh +++ b/lib/jitsi.sh @@ -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