Chris Vogel 1 год назад
Родитель
Сommit
4e25546bc1
2 измененных файлов с 20 добавлено и 11 удалено
  1. 16 0
      config_panel.toml
  2. 4 11
      doc/PRE_UPGRADE.md

+ 16 - 0
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"
+
+

+ 4 - 11
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@<your main domain>'
 
-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 <my flohmarkt app id> admin_mail -v <email to send change notification to>
-```
-
-You can find `<my flohmarkt app id>` by executing `yunohost app list` and looking for the blocks containing `name: flohmarkt`. The line `id:` contains the `<my flohmarkt app id>` you're looking for.
-
-Usually this will be `flohmarkt`.