1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/flohmarkt_ynh.git synced 2024-09-03 18:36:30 +02:00

config-panel

This commit is contained in:
Chris Vogel 2024-06-17 13:02:10 +02:00
parent db5bfde99b
commit 4e25546bc1
2 changed files with 20 additions and 11 deletions

16
config_panel.toml Normal file
View file

@ -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"

View file

@ -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`.