podman-jitsi : tilde no good
This commit is contained in:
parent
6b570a4c87
commit
603bf22846
|
@ -7,22 +7,22 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
if [[ -d ${confvolume} ]]; then
|
if [[ -d ~/${confvolume} ]]; then
|
||||||
echo "Error : conf volume ${confvolume} already exists. Please remove it first (prune?)."
|
echo "Error : conf volume ~/${confvolume} already exists. Please remove it first (prune?)."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
${ABSDIR}/10_install.sh
|
||||||
|
|
||||||
# Patch config.js
|
# Patch config.js
|
||||||
sed_in_place "^ enabled: true," " enabled: false," ${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 "^ // enableInsecureRoomNameWarning: false," " enableInsecureRoomNameWarning: true," ~/${confvolume}/web/config.js
|
||||||
sed_in_place "^ // disableThirdPartyRequests: false," " disableThirdPartyRequests: 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 "^ // remoteVideoMenu: {" " remoteVideoMenu: {\n disableKick: false,\n disableGrantModerator: false,\n }," ~/${confvolume}/web/config.js
|
||||||
|
|
||||||
# Patch ${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 "^ 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 "^ 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
|
sed_in_place "^ JITSI_WATERMARK_LINK: 'https://jitsi.org'," " JITSI_WATERMARK_LINK: '${GARBAYE_JITSI_URL}'," ~/${confvolume}/web/interface_config.js
|
||||||
|
|
|
@ -7,8 +7,8 @@ source ${ABSDIR}/vars.sh
|
||||||
ensure_pwd_is_scriptdir
|
ensure_pwd_is_scriptdir
|
||||||
ensure_not_root
|
ensure_not_root
|
||||||
|
|
||||||
if [[ ! -d ${confvolume} ]]; then
|
if [[ ! -d ~/${confvolume} ]]; then
|
||||||
echo "Error : conf volume ${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
|
echo "Error : conf volume ~/${confvolume} does not exists. Consider running 05_freshinstall.sh if this is the first install."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ ensure_pod_not_exists ${pod_name}
|
||||||
ensure_systemd_unit_not_exists ${service_name}
|
ensure_systemd_unit_not_exists ${service_name}
|
||||||
|
|
||||||
# remove date
|
# remove date
|
||||||
podman unshare rm -rf ${confvolume}/
|
podman unshare rm -rf ~/${confvolume}/
|
||||||
|
|
||||||
# remove images
|
# remove images
|
||||||
for image in ${upstream_images} ; do
|
for image in ${upstream_images} ; do
|
||||||
|
|
|
@ -4,5 +4,5 @@ pod_name='podman-jitsi'
|
||||||
service_name="pod-${pod_name}.service"
|
service_name="pod-${pod_name}.service"
|
||||||
upstream_images="docker.io/jitsi/jvb docker.io/jitsi/jicofo docker.io/jitsi/prosody docker.io/jitsi/web"
|
upstream_images="docker.io/jitsi/jvb docker.io/jitsi/jicofo docker.io/jitsi/prosody docker.io/jitsi/web"
|
||||||
version='stable-5870'
|
version='stable-5870'
|
||||||
confvolume='~/.jitsi-meet-cfg'
|
confvolume='.jitsi-meet-cfg'
|
||||||
GARBAYE_JITSI_URL="${GARBAYE_JITSI_ENV_URL:-https://jitsi.garbaye.fr}"
|
GARBAYE_JITSI_URL="${GARBAYE_JITSI_ENV_URL:-https://jitsi.garbaye.fr}"
|
||||||
|
|
Loading…
Reference in a new issue