This commit is contained in:
Bob Mottram 2017-01-01 21:38:41 +00:00
parent 4cb50a5b66
commit af25e3812f
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ function matrix_nginx {
# append the matrix server to the web site config # append the matrix server to the web site config
matrix_nginx_site=/etc/nginx/sites-available/$DEFAULT_DOMAIN_NAME matrix_nginx_site=/etc/nginx/sites-available/$DEFAULT_DOMAIN_NAME
if ! grep "# End of Matrix Server" $matrix_nginx_site; then if ! grep -q "# End of Matrix Server" $matrix_nginx_site; then
if [[ $ONION_ONLY == "no" ]]; then if [[ $ONION_ONLY == "no" ]]; then
echo '# Matrix Server' >> $matrix_nginx_site echo '# Matrix Server' >> $matrix_nginx_site
echo 'server {' >> $matrix_nginx_site echo 'server {' >> $matrix_nginx_site

View File

@ -65,7 +65,7 @@ function install_turn {
# append the matrix server to the web site config # append the matrix server to the web site config
turn_nginx_site=/etc/nginx/sites-available/$DEFAULT_DOMAIN_NAME turn_nginx_site=/etc/nginx/sites-available/$DEFAULT_DOMAIN_NAME
if ! grep "# End of TURN Server" $turn_nginx_site; then if ! grep -q "# End of TURN Server" $turn_nginx_site; then
if [[ $ONION_ONLY == "no" ]]; then if [[ $ONION_ONLY == "no" ]]; then
echo '# TURN Server' >> $turn_nginx_site echo '# TURN Server' >> $turn_nginx_site
echo 'server {' >> $turn_nginx_site echo 'server {' >> $turn_nginx_site