Moves config.js in /etc/jitsi/meet.

pull/184/head
Damian Minkov 10 years ago
parent ee324cf41f
commit 75586431a4
  1. 1
      debian/jitsi-meet.conffiles
  2. 1
      debian/jitsi-meet.docs
  3. 14
      debian/jitsi-meet.postinst
  4. 2
      debian/rules
  5. 4
      doc/debian/jitsi-meet/jitsi-meet.example

@ -1 +0,0 @@
/usr/share/jitsi-meet/config.js

@ -1,3 +1,4 @@
README.md
doc/debian/jitsi-meet/jitsi-meet.example
doc/debian/jitsi-meet/README
config.js

@ -69,14 +69,14 @@ case "$1" in
fi
# jitsi meet
chown -R www-data:www-data /usr/share/jitsi-meet/
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" /usr/share/jitsi-meet/config.js
# enable turn
#if grep "// useStunTurn: true," /usr/share/jitsi-meet/config.js > /dev/null; then
# sed -i "s/\/\/\ \ useStunTurn:\ true,/\ \ \ \ useStunTurn:\ true,/" /usr/share/jitsi-meet/config.js
#fi
invoke-rc.d nginx restart
JITSI_MEET_CONFIG="/etc/jitsi/meet/$JVB_HOSTNAME-config.js"
if [ ! -f $JITSI_MEET_CONFIG ]; then
mkdir -p /etc/jitsi/meet/
cp /usr/share/doc/jitsi-meet/config.js $JITSI_MEET_CONFIG
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" $JITSI_MEET_CONFIG
fi
invoke-rc.d nginx reload
;;
abort-upgrade|abort-remove|abort-deconfigure)

2
debian/rules vendored

@ -14,7 +14,7 @@
override_dh_install:
dh_installdirs
dh_install
dh_install -X/config.js
yui-compressor -o debian/jitsi-meet/usr/share/jitsi-meet/libs/strophe/strophe.caps.jsonly.min.js \
debian/patches/missing-source/libs/strophe/strophe.caps.jsonly.js
yui-compressor -o debian/jitsi-meet/usr/share/jitsi-meet/libs/strophe/strophe.disco.min.js \

@ -13,6 +13,10 @@ server {
root /usr/share/jitsi-meet;
index index.html index.htm;
location /config.js {
alias /etc/jitsi/meet/jitsi-meet.example.com-config.js;
}
location ~ ^/([a-zA-Z0-9]+)$ {
rewrite ^/(.*)$ / break;
}

Loading…
Cancel
Save