podman-jitsi : tilde no good

This commit is contained in:
Gitouche 2021-06-06 14:52:33 +02:00
parent 6b570a4c87
commit 603bf22846
4 changed files with 15 additions and 15 deletions

View file

@ -7,22 +7,22 @@ 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?)."
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}
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
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
# 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
# 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

View file

@ -7,8 +7,8 @@ source ${ABSDIR}/vars.sh
ensure_pwd_is_scriptdir
ensure_not_root
if [[ ! -d ${confvolume} ]]; then
echo "Error : conf volume ${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
if [[ ! -d ~/${confvolume} ]]; then
echo "Error : conf volume ~/${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
exit 1
fi

View file

@ -17,7 +17,7 @@ ensure_pod_not_exists ${pod_name}
ensure_systemd_unit_not_exists ${service_name}
# remove date
podman unshare rm -rf ${confvolume}/
podman unshare rm -rf ~/${confvolume}/
# remove images
for image in ${upstream_images} ; do

View file

@ -4,5 +4,5 @@ pod_name='podman-jitsi'
service_name="pod-${pod_name}.service"
upstream_images="docker.io/jitsi/jvb docker.io/jitsi/jicofo docker.io/jitsi/prosody docker.io/jitsi/web"
version='stable-5870'
confvolume='~/.jitsi-meet-cfg'
confvolume='.jitsi-meet-cfg'
GARBAYE_JITSI_URL="${GARBAYE_JITSI_ENV_URL:-https://jitsi.garbaye.fr}"