diff --git a/src/freedombone-app-matrix b/src/freedombone-app-matrix index 60b40cc2..157bbd51 100755 --- a/src/freedombone-app-matrix +++ b/src/freedombone-app-matrix @@ -597,6 +597,9 @@ function remove_matrix { remove_completion_param install_matrix sed -i '/matrix/d' $COMPLETION_FILE + + rm /etc/avahi/services/matrix.service + systemctl restart avahi-daemon } function install_home_server { @@ -802,5 +805,22 @@ function install_matrix { set_completion_param "matrix domain" "$MATRIX_DOMAIN_NAME" + # Add avahi services + echo '' > /etc/avahi/services/matrix.service + echo '' >> /etc/avahi/services/matrix.service + echo '' >> /etc/avahi/services/matrix.service + echo ' %h MATRIX' >> /etc/avahi/services/matrix.service + echo ' ' >> /etc/avahi/services/matrix.service + echo ' _matrix._tcp' >> /etc/avahi/services/matrix.service + echo " $MATRIX_HTTP_PORT" >> /etc/avahi/services/matrix.service + echo ' ' >> /etc/avahi/services/matrix.service + echo ' ' >> /etc/avahi/services/matrix.service + echo ' _matrix._udp' >> /etc/avahi/services/matrix.service + echo " $MATRIX_HTTP_PORT" >> /etc/avahi/services/matrix.service + echo ' ' >> /etc/avahi/services/matrix.service + echo '' >> /etc/avahi/services/matrix.service + + systemctl restart avahi-daemon + APP_INSTALLED=1 }