diff --git a/scripts/install b/scripts/install index 56e9687..7255400 100644 --- a/scripts/install +++ b/scripts/install @@ -111,6 +111,9 @@ sudo cp ../conf/logrotate /etc/logrotate.d/$app ynh_app_setting_set $app skipped_uris "/" +# register yunohost service +sudo yunohost service add matrix-synapse + # Régénère la configuration de SSOwat sudo yunohost app ssowatconf # Recharge la configuration Nginx diff --git a/scripts/remove b/scripts/remove index 2e5aac3..df2cbdb 100755 --- a/scripts/remove +++ b/scripts/remove @@ -35,6 +35,8 @@ sudo rm -rf /etc/apt/sources.list.d/matrix.list sudo rm -rf /var/lib/matrix-synapse ynh_package_update +sudo yunohost service remove matrix-synapse + # Régénère la configuration de SSOwat sudo yunohost app ssowatconf sudo service nginx reload