move to tpl for config.js

aaronkvanmeerten/jitsi-customizations
Aaron van Meerten 5 years ago
parent 8bfe7fbb92
commit 6890b66de5
  1. 8
      web/rootfs/etc/cont-init.d/10-config

@ -62,13 +62,7 @@ if [[ ! -f /config/nginx/site-confs/default ]]; then
fi fi
if [[ ! -f /config/config.js ]]; then if [[ ! -f /config/config.js ]]; then
cp /defaults/config.js /config/config.js tpl /defaults/config.js > /config/config.js
sed -i \
-e "s#jitsi-meet.example.com#$XMPP_DOMAIN#g" \
-e "s#bosh:.*#bosh: '/http-bind',#" \
-e "s#muc:.*#muc: '${XMPP_MUC_DOMAIN}',#" \
-e "s#// focusUserJid:.*#focusUserJid: '${JICOFO_AUTH_USER}@${XMPP_AUTH_DOMAIN}',#" \
/config/config.js
if [[ $ENABLE_RECORDING -eq 1 || x$ENABLE_RECORDING == xtrue ]]; then if [[ $ENABLE_RECORDING -eq 1 || x$ENABLE_RECORDING == xtrue ]]; then
sed -i \ sed -i \

Loading…
Cancel
Save