mirror of
https://github.com/YunoHost-Apps/mautrix_signal_ynh.git
synced 2024-09-03 19:46:07 +02:00
Add settings to manifest: encryption, bot as admin
These settings were migrated over from the WhatsApp bridge.
This commit is contained in:
parent
aa49af1161
commit
b87c3d73e6
2 changed files with 23 additions and 3 deletions
|
@ -46,6 +46,22 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
|
||||||
example = "signalbot"
|
example = "signalbot"
|
||||||
default = "signalbot"
|
default = "signalbot"
|
||||||
|
|
||||||
|
[install.bot_synapse_adm]
|
||||||
|
ask.en = "Give the Signal bot administrator rights to the Synapse instance?"
|
||||||
|
ask.fr = "Donner au robot Signal des droits administrateur à l'instance Synapse ?"
|
||||||
|
type = "boolean"
|
||||||
|
help.en = "If activated, the bot can group Signal chats in a Matrix space.Not required if you set up Synapse so that non-admins are authorized to create communities."
|
||||||
|
help.fr = "Si activé, le robot groupera les conversations Signal dans une communauté Matrix.Pas nécessaire si vous avez réglé Synapse pour qu'il autorise les non-admin à créer des communautés."
|
||||||
|
default = true
|
||||||
|
|
||||||
|
[install.encryption]
|
||||||
|
ask.en = "Enable end-to-bridge encryption?"
|
||||||
|
ask.fr = "Activer le chiffrement entre Synapse et le bridge ?"
|
||||||
|
type = "boolean"
|
||||||
|
help.en = "Only activate if you know the prerequisites and constraints related to E2B."
|
||||||
|
help.fr = "N'activer que si vous connaissez les prérequis et constraintes liées à E2B."
|
||||||
|
default = true
|
||||||
|
|
||||||
[install.botadmin]
|
[install.botadmin]
|
||||||
ask.en = "Choose the Matrix account administrator of the Signal bot"
|
ask.en = "Choose the Matrix account administrator of the Signal bot"
|
||||||
ask.fr = "Choisissez le compte Matrix administrateur du robot Signal"
|
ask.fr = "Choisissez le compte Matrix administrateur du robot Signal"
|
||||||
|
|
|
@ -14,9 +14,6 @@ source /usr/share/yunohost/helpers
|
||||||
# INITIALIZE AND STORE SETTINGS
|
# INITIALIZE AND STORE SETTINGS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
bot_synapse_adm=true
|
|
||||||
encryption=false
|
|
||||||
|
|
||||||
if [[ -z "$botusers" ]] || [ "$botusers" == "admin" ]; then
|
if [[ -z "$botusers" ]] || [ "$botusers" == "admin" ]; then
|
||||||
if_botusers="# "
|
if_botusers="# "
|
||||||
else
|
else
|
||||||
|
@ -39,6 +36,13 @@ else
|
||||||
enable_relaybot="false"
|
enable_relaybot="false"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$encryption" -eq "1" ]
|
||||||
|
then
|
||||||
|
encryption="true"
|
||||||
|
else
|
||||||
|
encryption="false"
|
||||||
|
fi
|
||||||
|
|
||||||
server_name=$(ynh_app_setting_get --app $synapse_instance --key server_name)
|
server_name=$(ynh_app_setting_get --app $synapse_instance --key server_name)
|
||||||
domain=$(ynh_app_setting_get --app $synapse_instance --key domain)
|
domain=$(ynh_app_setting_get --app $synapse_instance --key domain)
|
||||||
mautrix_version=$(ynh_app_upstream_version)
|
mautrix_version=$(ynh_app_upstream_version)
|
||||||
|
|
Loading…
Add table
Reference in a new issue