Fixes errors in postinst.

This commit is contained in:
Damian Minkov 2014-09-04 10:45:35 +03:00
parent 18e7aa50ab
commit a03f43a881
1 changed files with 6 additions and 5 deletions

View File

@ -20,8 +20,9 @@ set -e
case "$1" in case "$1" in
configure) configure)
# nginx conf
. /etc/default/jitsi-videobridge . /etc/default/jitsi-videobridge
# nginx conf
if [ ! -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf ]; then if [ ! -f /etc/nginx/sites-available/$JVB_HOSTNAME.conf ]; then
cp /usr/share/doc/jitsi-meet/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf cp /usr/share/doc/jitsi-meet/jitsi-meet.example /etc/nginx/sites-available/$JVB_HOSTNAME.conf
if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ]; then if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ]; then
@ -62,10 +63,10 @@ case "$1" in
sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \ sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \
/etc/nginx/sites-available/$JVB_HOSTNAME.conf /etc/nginx/sites-available/$JVB_HOSTNAME.conf
fi fi
fi
# and we're done with debconf # and we're done with debconf
db_stop db_stop
fi
# jitsi meet # jitsi meet
chown -R www-data:www-data /usr/share/jitsi-meet/ chown -R www-data:www-data /usr/share/jitsi-meet/