/srv/web/ references changed to /usr/share/ ones

This commit is contained in:
turint 2014-07-01 16:25:30 +03:00
parent 450e2a05ff
commit ddaf6caa51
2 changed files with 5 additions and 5 deletions

8
debian/postinst vendored
View File

@ -40,11 +40,11 @@ case "$1" in
fi
# jitsi meet
chown -R www-data:www-data /srv/web/jitsi-meet/
sed -i "s/jitsi-meet.example.com/$JVB_HOSTNAME/g" /srv/web/jitsi-meet/config.js
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," /srv/web/jitsi-meet/config.js > /dev/null; then
sed -i "s/\/\/\ \ useStunTurn:\ true,/\ \ \ \ useStunTurn:\ true,/" /srv/web/jitsi-meet/config.js
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

View File

@ -10,7 +10,7 @@ server {
ssl_certificate /var/lib/prosody/jitsi-meet.example.com.crt;
ssl_certificate_key /var/lib/prosody/jitsi-meet.example.com.key;
root /srv/web/jitsi-meet;
root /usr/share/jitsi-meet;
index index.html index.htm;
location ~ ^/([a-zA-Z0-9]+)$ {