mirror of
https://github.com/YunoHost-Apps/mautrix_signal_ynh.git
synced 2024-09-03 19:46:07 +02:00
change everything, based on https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/pull/74
This commit is contained in:
parent
21980fb11e
commit
984578dbf8
2 changed files with 15 additions and 19 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue