From b4e26eb3a1a3433a047b30e488e50440bb0c2fe9 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 31 Mar 2024 12:14:25 +0200 Subject: [PATCH] Allow self-updates, add warning about it --- conf/systemd.service | 3 ++- doc/ADMIN.md | 3 +-- doc/ADMIN_fr.md | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/conf/systemd.service b/conf/systemd.service index 31f1b5e..39c9c46 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -34,7 +34,8 @@ ProtectKernelModules=yes ProtectKernelTunables=yes LockPersonality=yes SystemCallArchitectures=native -SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation @privileged +# Removing @privileged to allow self-update +SystemCallFilter=~@clock @debug @module @mount @obsolete @reboot @setuid @swap @cpu-emulation # Denying access to capabilities that should not be relevant for webapps # Doc: https://man7.org/linux/man-pages/man7/capabilities.7.html diff --git a/doc/ADMIN.md b/doc/ADMIN.md index 382152b..9e8f155 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -1,5 +1,4 @@ -* Sonarr developper's repository only allows to download the very latest version. - * The version displayed here may be different from the one actually installed. +* Sonarr has an internal self-upgrade system that has proven to be reliable with YunoHost's package. You may use it, though remember that there will be a discrepancy between Sonarr's actual version and the one known by YunoHost. * Access control is done with YunoHost's permissions system. * API (`__DOMAIN__/__PATH__/api`) can be accessed by visitors to allow control by remote clients. * The app uses YunoHost's multimedia directories, hence it has write access to users' and shared directories in `/home/yunohost.multimedia`. After installation, you can choose these directories to store your media. diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md index 49e767f..fec126c 100644 --- a/doc/ADMIN_fr.md +++ b/doc/ADMIN_fr.md @@ -1,5 +1,4 @@ -* Le dépôt des développeurs de Sonarr ne permet de télécharger que la toute dernière version. - * La version annoncée ici peut être différente de celle réellement installée. +* Sonarr a un système de mise à jour interne qui s'est montré compatible avec le package YunoHost. Vous pouvez l'utiliser, mais rappelez-vous que la version de Sonarr sera différente de celle connue de YunoHost. * Le contrôle de l'accès se fait avec le système de permissions de YunoHost. * L'API (`__DOMAIN__/__PATH__/api`) est accessible aux visiteurs pour permettre le contrôle via des clients externes. * L'application utilise les dossiers multimédia de YunoHost, elle a donc accès en écriture aux dossiers utilisateurs et communs de `/home/yunohost.multimedia`. Après installation, vous pourrez choisir ces dossiers pour y stocker vos médias.