From a03f43a8817fb42c8de851c5371e5121dbba29a5 Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Thu, 4 Sep 2014 10:45:35 +0300 Subject: [PATCH] Fixes errors in postinst. --- debian/jitsi-meet.postinst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/jitsi-meet.postinst b/debian/jitsi-meet.postinst index 70f867f4d..61ff3023f 100644 --- a/debian/jitsi-meet.postinst +++ b/debian/jitsi-meet.postinst @@ -20,8 +20,9 @@ set -e case "$1" in configure) - # nginx conf . /etc/default/jitsi-videobridge + + # nginx conf 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 if [ ! -f /etc/nginx/sites-enabled/$JVB_HOSTNAME.conf ]; then @@ -34,7 +35,7 @@ case "$1" in sed -i "s/#\ server_names_hash_bucket_size\ 64/\ server_names_hash_bucket_size\ 64/" /etc/nginx/nginx.conf fi - if [ ! -f /etc/ssl/$JVB_HOSTNAME.key] || [ ! -f /etc/ssl/$JVB_HOSTNAME.crt]; then + if [ ! -f /etc/ssl/$JVB_HOSTNAME.key ] || [ ! -f /etc/ssl/$JVB_HOSTNAME.crt ]; then # loading debconf . /usr/share/debconf/confmodule @@ -62,10 +63,10 @@ case "$1" in sed -i "s/ssl_certificate\ \/var\/lib\/prosody\/.*crt/ssl_certificate\ $CERT_CRT_ESC/g" \ /etc/nginx/sites-available/$JVB_HOSTNAME.conf fi - fi - # and we're done with debconf - db_stop + # and we're done with debconf + db_stop + fi # jitsi meet chown -R www-data:www-data /usr/share/jitsi-meet/