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:52:33 +00:00
|
|
|
if [[ -d ~/${confvolume} ]]; then
|
|
|
|
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:52:33 +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
|
|
|
|
|
|
|
# Patch config.js
|
2021-09-18 21:11:55 +00:00
|
|
|
echo "
|
|
|
|
config.enableInsecureRoomNameWarning = true;
|
|
|
|
|
|
|
|
config.disableThirdPartyRequests = true;
|
|
|
|
" > ~/${confvolume}/web/custom-config.js
|
2021-06-04 17:36:50 +00:00
|
|
|
|
2021-06-06 12:52:33 +00:00
|
|
|
# Patch ~/${confvolume}/web/interface_config.js
|
2021-09-18 21:11:55 +00:00
|
|
|
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
|
|
|
|
|