Add conf extension

This commit is contained in:
Bob Mottram 2016-11-09 22:31:08 +00:00
parent c503b2dc15
commit 2a6e0b649d
1 changed files with 4 additions and 4 deletions

View File

@ -148,7 +148,7 @@ function remove_jitsi {
fi
if [ -f /etc/nginx/sites-available/${JITSI_DOMAIN_NAME} ]; then
nginx_dissite ${JITSI_DOMAIN_NAME}
nginx_dissite ${JITSI_DOMAIN_NAME}.conf
if [ -d /var/www/${JITSI_DOMAIN_NAME} ]; then
rm -rf /var/www/${JITSI_DOMAIN_NAME}
fi
@ -229,7 +229,7 @@ function install_jitsi {
# add jitsi repo
jitsi_deb_repo=binary
apt-get -yq install wget debconf-utils
apt-get -yq install wget debconf-utils default-jre
install_nodejs jitsi
npm install -g browserify@13.1.1
if ! grep "jitsi" /etc/apt/sources.list; then
@ -258,7 +258,7 @@ function install_jitsi {
debconf-set-selections <<< "jitsi-meet jitsi-meet/cert-choice multiselect 1"
apt-get -yq install jitsi-meet jitsi-meet-prosody
jitsi_nginx_site=/etc/nginx/sites-available/$JITSI_DOMAIN_NAME
jitsi_nginx_site=/etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
if [[ $ONION_ONLY == "no" ]]; then
function_check nginx_http_redirect
nginx_http_redirect $JITSI_DOMAIN_NAME
@ -375,7 +375,7 @@ function install_jitsi {
fi
function_check nginx_ensite
nginx_ensite ${JITSI_DOMAIN_NAME}
nginx_ensite ${JITSI_DOMAIN_NAME}.conf
set_completion_param "jitsi domain" "$JITSI_DOMAIN_NAME"