From e72a1daa32170ed4df57298a6810f8adc8909208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= Date: Sat, 18 Sep 2021 23:11:55 +0200 Subject: [PATCH] Migration des patch dans les fichiers custom-*.js --- podman-jitsi/05_freshinstall.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/podman-jitsi/05_freshinstall.sh b/podman-jitsi/05_freshinstall.sh index fe2e39a..8e431ad 100755 --- a/podman-jitsi/05_freshinstall.sh +++ b/podman-jitsi/05_freshinstall.sh @@ -14,15 +14,17 @@ fi mkdir -p ~/${confvolume}/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri} -${ABSDIR}/10_install.sh - # Patch config.js -sed_in_place "^ enabled: true," " enabled: false," ~/${confvolume}/web/config.js -sed_in_place "^ // enableInsecureRoomNameWarning: false," " enableInsecureRoomNameWarning: true," ~/${confvolume}/web/config.js -sed_in_place "^ // disableThirdPartyRequests: false," " disableThirdPartyRequests: true," ~/${confvolume}/web/config.js -sed_in_place "^ // remoteVideoMenu: {" " remoteVideoMenu: {\n disableKick: false,\n disableGrantModerator: false,\n }," ~/${confvolume}/web/config.js +echo " +config.enableInsecureRoomNameWarning = true; + +config.disableThirdPartyRequests = true; +" > ~/${confvolume}/web/custom-config.js # Patch ~/${confvolume}/web/interface_config.js -sed_in_place "^ APP_NAME: 'Jitsi Meet'," " APP_NAME: 'Jitsi Garbaye'," ~/${confvolume}/web/interface_config.js -sed_in_place "^ DEFAULT_REMOTE_DISPLAY_NAME: 'Fellow Jitster'," " DEFAULT_REMOTE_DISPLAY_NAME: 'Participant'," ~/${confvolume}/web/interface_config.js -sed_in_place "^ JITSI_WATERMARK_LINK: 'https://jitsi.org'," " JITSI_WATERMARK_LINK: '${GARBAYE_JITSI_URL}'," ~/${confvolume}/web/interface_config.js +echo " +interfaceConfig.APP_NAME = 'Jitsi Garbaye'; +interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME = 'Participant'; +interfaceConfig.JITSI_WATERMARK_LINK = 'https://qlf-jitsi.garbaye.fr'; +" > ~/${confvolume}/web/custom-interface_config.js +