From d4b1cfe31c807d4febe96cc34e5b5dd6559a97d6 Mon Sep 17 00:00:00 2001 From: Nicolas Palix Date: Tue, 20 Dec 2022 19:01:14 +0100 Subject: [PATCH] Ignore yunohost-api error when not running (#2167) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Ignore yunohost-api error when not running Add instruction to ignore the error about yunohost-api not running when it is intentionally stopped and disabled. * Update pages/02.administer/45.tutorials/60.security/security.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> * Update pages/02.administer/45.tutorials/60.security/security.md Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com> --- pages/02.administer/45.tutorials/60.security/security.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/02.administer/45.tutorials/60.security/security.md b/pages/02.administer/45.tutorials/60.security/security.md index 317fb638..a78377f2 100644 --- a/pages/02.administer/45.tutorials/60.security/security.md +++ b/pages/02.administer/45.tutorials/60.security/security.md @@ -94,7 +94,7 @@ sudo yunohost settings set security.ssh.compatibility -v modern YunoHost administration is accessible through an **HTTP API**, served on the 6787 port by default (only on `localhost`). It can be used to administer a lot of things on your server, so malicious actors can also use it to damage your server. -The best thing to do, if you know how to use the [command-line interface](/commandline), is to deactivate the `yunohost-api` service. +The best thing to do, if you know how to use the [command-line interface (CLI)](/commandline), is to deactivate the `yunohost-api` service. ! This will completely disable both YunoHost's API and the web administration panel that relies on it. ! Proceed only if you are comfortable with the command line interface. @@ -103,3 +103,10 @@ The best thing to do, if you know how to use the [command-line interface](/comma sudo systemctl disable yunohost-api sudo systemctl stop yunohost-api ``` + +As `yunohost-api` is now disabled and not running, Diagnosis will report an error and cannot be ignored from the API. +If you want to ignore this error, you can configure YunoHost from the CLI. + +```bash +sudo yunohost diagnosis ignore --filter services service=yunohost-api +```