2021-06-04 17:36:50 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
|
|
|
|
source ${ABSDIR}/../functions.sh
|
|
|
|
source ${ABSDIR}/vars.sh
|
|
|
|
|
|
|
|
ensure_pwd_is_scriptdir
|
|
|
|
ensure_not_root
|
|
|
|
|
2021-06-06 12:11:30 +00:00
|
|
|
if [[ -d ${confvolume} ]]; then
|
2021-06-06 12:17:26 +00:00
|
|
|
echo Error : conf volume ${confvolume} already exists. Please remove it first (prune?).
|
2021-06-06 12:11:30 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-06-06 12:09:08 +00:00
|
|
|
mkdir -p ${confvolume}/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}
|
2021-06-04 17:36:50 +00:00
|
|
|
|
|
|
|
${ABSDIR}/10_install.sh
|
|
|
|
|
|
|
|
# Patch config.js
|
2021-06-06 12:09:08 +00:00
|
|
|
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
|
2021-06-04 17:36:50 +00:00
|
|
|
|
2021-06-06 12:09:08 +00:00
|
|
|
# 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: 'https://jitsi.garbaye.fr'," ${confvolume}/web/interface_config.js
|