diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index d8e32a7f..e3c3ae65 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -498,7 +498,7 @@ function remove_matrix { remove_onion_service matrix ${MATRIX_ONION_PORT} remove_onion_service matrix ${MATRIX_ID_ONION_PORT} - sed -i "/# Matrix Server{/,/# End of Matrix Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} + sed -i "/# Matrix Server/,/# End of Matrix Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} systemctl restart nginx remove_completion_param install_matrix diff --git a/src/freedombone-utils-turn b/src/freedombone-utils-turn index 3324ca82..492ecb4e 100755 --- a/src/freedombone-utils-turn +++ b/src/freedombone-utils-turn @@ -55,7 +55,7 @@ function remove_turn { fi apt-get -y remove coturn rm -rf /var/lib/turn - sed -i "/# TURN Server{/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} + sed -i "/# TURN Server/,/# End of TURN Server/d" /etc/nginx/sites-available/${DEFAULT_DOMAIN_NAME} remove_onion_service turn ${TURN_ONION_PORT} systemctl restart nginx }