mirror of
https://github.com/YunoHost-Apps/pyinventory_ynh.git
synced 2024-09-03 20:16:09 +02:00
Bugfix "config_panel.toml"
`__FINALPATH__` must be `__DATA_DIR__`, but this is not useable because of https://github.com/YunoHost/issues/issues/2283 So we use the work-a-round: `/home/yunohost.app/__APP__` to get the config panel working ;)
This commit is contained in:
parent
28b76f3196
commit
47c1da656a
1 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# https://yunohost.org/en/packaging_config_panels
|
||||||
# https://github.com/YunoHost/example_ynh/blob/master/config_panel.toml.example
|
# https://github.com/YunoHost/example_ynh/blob/master/config_panel.toml.example
|
||||||
|
|
||||||
version = "1.0"
|
version = "1.0"
|
||||||
|
@ -14,13 +15,16 @@ services = ["__APP__"]
|
||||||
ask = "from email"
|
ask = "from email"
|
||||||
type = "email"
|
type = "email"
|
||||||
help = "Default email address to use for various automated emails."
|
help = "Default email address to use for various automated emails."
|
||||||
bind = "default_from_email:__FINALPATH__/settings.py"
|
#
|
||||||
|
# We can't use "__DATA_DIR__" in bind value, because of this bug:
|
||||||
|
# https://github.com/YunoHost/issues/issues/2283
|
||||||
|
bind = "default_from_email:/home/yunohost.app/__APP__/settings.py"
|
||||||
|
|
||||||
[main.config.admin_email]
|
[main.config.admin_email]
|
||||||
ask = "ADMIN email"
|
ask = "ADMIN email"
|
||||||
type = "email"
|
type = "email"
|
||||||
help = "EMail address for error emails."
|
help = "EMail address for error emails."
|
||||||
bind = "admin_email:__FINALPATH__/settings.py"
|
bind = "admin_email:/home/yunohost.app/__APP__/settings.py"
|
||||||
|
|
||||||
[main.config.debug_enabled]
|
[main.config.debug_enabled]
|
||||||
ask = "DEBUG mode"
|
ask = "DEBUG mode"
|
||||||
|
@ -28,11 +32,11 @@ services = ["__APP__"]
|
||||||
yes = "1"
|
yes = "1"
|
||||||
no = "0"
|
no = "0"
|
||||||
help = "Should be never enabled in production!"
|
help = "Should be never enabled in production!"
|
||||||
bind = "debug_enabled:__FINALPATH__/settings.py"
|
bind = "debug_enabled:/home/yunohost.app/__APP__/settings.py"
|
||||||
|
|
||||||
[main.config.log_level]
|
[main.config.log_level]
|
||||||
type = "string"
|
type = "string"
|
||||||
ask = "Log Level"
|
ask = "Log Level"
|
||||||
choices = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
|
choices = ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
|
||||||
default = "WARNING"
|
default = "WARNING"
|
||||||
bind = "log_level:__FINALPATH__/settings.py"
|
bind = "log_level:/home/yunohost.app/__APP__/settings.py"
|
||||||
|
|
Loading…
Reference in a new issue