1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_signal_ynh.git synced 2024-09-03 19:46:07 +02:00
This commit is contained in:
Nathanaël HANNEBERT 2022-12-14 22:30:47 +01:00
parent 21980fb11e
commit 984578dbf8
2 changed files with 15 additions and 19 deletions

View file

@ -1,16 +1,15 @@
version = "1.0"
[bind]
name = "Mautrix Signal configuration"
[encryption]
name = "Encryption"
services = ["__APP__"]
[encryption.config]
name = "Encryption settings"
[bind.encryption]
name = "Manage encryption"
[bind.encryption.encryption]
ask = "Do you want to allow the use of encrypted room with Mautrix Signal Bridge? "
[encryption.config.encryption]
ask = "Enable encryption"
type = "boolean"
help = "Allow encryption, work in group chat rooms with e2ee enabled. Values possible are 'true' or 'false'."
bind = ":__FINALPATH__//config.yaml"
# TODO: Add toggle for enabling and enforcing encyption
yes = "true"
no = "false"
help = "Enables end to bridge encryption"
bind = "encryption>allow:__FINALPATH__/config.yaml"

View file

@ -15,8 +15,10 @@ ynh_abort_if_errors
# RETRIEVE ARGUMENTS
#=================================================
encryption_allowed=$(ynh_app_setting_get --app=$app --key=encryption_allowed)
function get__encryption {
encryption=$(ynh_app_setting_get --app $app --key encryption)
echo "'${encryption}'"
}
#=================================================
# SPECIFIC GETTERS FOR TOML SHORT KEY
#=================================================
@ -32,9 +34,4 @@ encryption_allowed=$(ynh_app_setting_get --app=$app --key=encryption_allowed)
# GENERIC FINALIZATION
#=================================================
ynh_app_config_apply() {
_ynh_app_config_apply
# TODO: regen the config at --destination="$final_path/config.yaml"
}
ynh_app_config_run $1