Remove site if it exists

This commit is contained in:
Bob Mottram 2016-11-09 22:48:20 +00:00
parent 743222666f
commit fc08f16df6
1 changed files with 3 additions and 0 deletions

View File

@ -249,6 +249,9 @@ function install_jitsi {
apt-get -yq install jitsi-meet jitsi-meet-prosody
jitsi_nginx_site=/etc/nginx/sites-available/${JITSI_DOMAIN_NAME}.conf
if [ -f $jitsi_nginx_site ]; then
rm $jitsi_nginx_site
fi
if [[ $ONION_ONLY == "no" ]]; then
function_check nginx_http_redirect
nginx_http_redirect $JITSI_DOMAIN_NAME