Bob Mottram 8 anni fa
parent
commit
af25e3812f
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1
    1
      src/freedombone-app-matrix
  2. 1
    1
      src/freedombone-utils-turn

+ 1
- 1
src/freedombone-app-matrix Vedi File

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

+ 1
- 1
src/freedombone-utils-turn Vedi File

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