From 4e25546bc16b9eb811144ddd3f036ec7d08b8c8a Mon Sep 17 00:00:00 2001 From: Chris Vogel Date: Mon, 17 Jun 2024 13:02:10 +0200 Subject: [PATCH] config-panel --- config_panel.toml | 16 ++++++++++++++++ doc/PRE_UPGRADE.md | 15 ++++----------- 2 files changed, 20 insertions(+), 11 deletions(-) create mode 100644 config_panel.toml diff --git a/config_panel.toml b/config_panel.toml new file mode 100644 index 0000000..a6e682e --- /dev/null +++ b/config_panel.toml @@ -0,0 +1,16 @@ +version = "1.0" +[notifications] + name = "notifications" + help.en = "The flohmarkt yunohost integration uses urlwatch to check for changes in the user database." + help.de = "Die flohmarkt yunohost Integration verwendet urlwatch um Änderungen an der Benutzerdatenbank zu überwachen." + [notifications.email] + name = "notify via email" + [notifications.email.admin_mail] + type = "email" + ask.en = "email address of this flohmarkts admin" + help.en = "you'll get notified about events like changes in the user database of flohmarkt" + ask.de = "E-Mail Adresse des Administrators dieses flohmarkts" + help.de = "an diese Adresse werden Informationen zu z.B. Änderungen an der Benutzerdatenbank geschickt" + bind = "email>to:__INSTALL_DIR__/urlwatch/config.yaml" + + diff --git a/doc/PRE_UPGRADE.md b/doc/PRE_UPGRADE.md index 53b6319..4bde76e 100644 --- a/doc/PRE_UPGRADE.md +++ b/doc/PRE_UPGRADE.md @@ -6,23 +6,16 @@ This version configures the regular execution of `urlwatch` to find differences The job is called from /etc/cron.hourly/ every hour. -If `urlwatch` finds a difference in the user database stored in CouchDB for a flohmarkt instance it'll send an email to the administrator. +If `urlwatch` finds a difference in the user database stored in CouchDB for a flohmarkt instance it'll send an email to an email address saved as a new setting "admin_mail". ## new setting "admin_mail" -The email address of the administrator is stored inside a new setting admin_mail. The upgrade will guess a default: +The upgrade script will guess a default: * it'll try to read the email of the flohmarkt admin from couchdb * if it fails for some reason it'll use 'admin@' -You'll get WARNINGs during the upgrade if the default has been guessed for your settings. +You'll get WARNINGs during the upgrade showing you the address being used. Please check the address! -If you do not like the default you can change it from the command line like this: +If you do not like the default you can change it on the new config panel you can find in your yunohost admin webgui on the page of the flohmarkt app. -```sh -yunohost app setting admin_mail -v -``` - -You can find `` by executing `yunohost app list` and looking for the blocks containing `name: flohmarkt`. The line `id:` contains the `` you're looking for. - -Usually this will be `flohmarkt`.