services-garbaye/podman-jitsi/05_freshinstall.sh
2021-09-19 10:55:28 +02:00

30 lines
867 B
Bash
Executable file

#!/usr/bin/env bash
ABSDIR="$( dirname "$(readlink -f -- "$0")" )"
source ${ABSDIR}/../functions.sh
source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if [[ -d ~/${confvolume} ]]; then
echo "Error : conf volume ~/${confvolume} already exists. Please remove it first (prune?)."
exit 1
fi
mkdir -p ~/${confvolume}/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}
# Patch config.js
echo "
config.enableInsecureRoomNameWarning = true;
config.disableThirdPartyRequests = true;
" > ~/${confvolume}/web/custom-config.js
# Patch ~/${confvolume}/web/interface_config.js
echo "
interfaceConfig.APP_NAME = 'Jitsi Garbaye';
interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME = 'Participant';
interfaceConfig.JITSI_WATERMARK_LINK = '${GARBAYE_JITSI_URL}';
" > ~/${confvolume}/web/custom-interface_config.js