podman-jitsi : remplacement du volume par une variable
This commit is contained in:
parent
22990d5d4a
commit
0a6d5dc74c
|
@ -7,17 +7,17 @@ source ${ABSDIR}/vars.sh
|
|||
ensure_pwd_is_scriptdir
|
||||
ensure_not_root
|
||||
|
||||
mkdir -p ~/.jitsi-meet-cfg/{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," ~/.jitsi-meet-cfg/web/config.js
|
||||
sed_in_place "^ // enableInsecureRoomNameWarning: false," " enableInsecureRoomNameWarning: true," ~/.jitsi-meet-cfg/web/config.js
|
||||
sed_in_place "^ // disableThirdPartyRequests: false," " disableThirdPartyRequests: true," ~/.jitsi-meet-cfg/web/config.js
|
||||
sed_in_place "^ // remoteVideoMenu: {" " remoteVideoMenu: {\n disableKick: false,\n disableGrantModerator: false,\n }," ~/.jitsi-meet-cfg/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 ~/.jitsi-meet-cfg/web/interface_config.js
|
||||
sed_in_place "^ APP_NAME: 'Jitsi Meet'," " APP_NAME: 'Jitsi Garbaye'," ~/.jitsi-meet-cfg/web/interface_config.js
|
||||
sed_in_place "^ DEFAULT_REMOTE_DISPLAY_NAME: 'Fellow Jitster'," " DEFAULT_REMOTE_DISPLAY_NAME: 'Participant'," ~/.jitsi-meet-cfg/web/interface_config.js
|
||||
sed_in_place "^ JITSI_WATERMARK_LINK: 'https://jitsi.org'," " JITSI_WATERMARK_LINK: 'https://jitsi.garbaye.fr'," ~/.jitsi-meet-cfg/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: 'https://jitsi.garbaye.fr'," ${confvolume}/web/interface_config.js
|
||||
|
|
|
@ -17,7 +17,7 @@ ensure_pod_not_exists ${pod_name}
|
|||
ensure_systemd_unit_not_exists ${service_name}
|
||||
|
||||
# remove date
|
||||
podman unshare rm -rf ~/.jitsi-meet-cfg/
|
||||
podman unshare rm -rf ${confvolume}/
|
||||
|
||||
# remove images
|
||||
for image in ${upstream_images} ; do
|
||||
|
|
|
@ -4,3 +4,4 @@ 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'
|
||||
|
|
Loading…
Reference in a new issue