mirror of
https://github.com/YunoHost-Apps/mautrix_discord_ynh.git
synced 2024-09-03 19:36:35 +02:00
commit
fd8563ffc0
11 changed files with 20 additions and 10 deletions
|
@ -21,7 +21,7 @@ A puppeting bridge between Matrix and Discord packaged as a YunoHost service. Me
|
||||||
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 0.6.5~ynh2
|
**Shipped version:** 0.6.5~ynh3
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
- Official admin documentation: <https://docs.mau.fi/bridges/go/discord/index.html>
|
- Official admin documentation: <https://docs.mau.fi/bridges/go/discord/index.html>
|
||||||
|
|
|
@ -21,7 +21,7 @@ A puppeting bridge between Matrix and Discord packaged as a YunoHost service. Me
|
||||||
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
||||||
|
|
||||||
|
|
||||||
**Versión actual:** 0.6.5~ynh2
|
**Versión actual:** 0.6.5~ynh3
|
||||||
## Documentaciones y recursos
|
## Documentaciones y recursos
|
||||||
|
|
||||||
- Documentación administrador oficial: <https://docs.mau.fi/bridges/go/discord/index.html>
|
- Documentación administrador oficial: <https://docs.mau.fi/bridges/go/discord/index.html>
|
||||||
|
|
|
@ -21,7 +21,7 @@ A puppeting bridge between Matrix and Discord packaged as a YunoHost service. Me
|
||||||
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
||||||
|
|
||||||
|
|
||||||
**Paketatutako bertsioa:** 0.6.5~ynh2
|
**Paketatutako bertsioa:** 0.6.5~ynh3
|
||||||
## Dokumentazioa eta baliabideak
|
## Dokumentazioa eta baliabideak
|
||||||
|
|
||||||
- Administratzaileen dokumentazio ofiziala: <https://docs.mau.fi/bridges/go/discord/index.html>
|
- Administratzaileen dokumentazio ofiziala: <https://docs.mau.fi/bridges/go/discord/index.html>
|
||||||
|
|
|
@ -20,7 +20,7 @@ Un pont entre Matrix et Discord présenté comme un service YunoHost. Les messag
|
||||||
|
|
||||||
**Attention : toujours sauvegarder et restaurer les applications matrix_synapse et mautrix_discord de Yunohost ensemble !
|
**Attention : toujours sauvegarder et restaurer les applications matrix_synapse et mautrix_discord de Yunohost ensemble !
|
||||||
|
|
||||||
**Version incluse :** 0.6.5~ynh2
|
**Version incluse :** 0.6.5~ynh3
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
- Documentation officielle de l’admin : <https://docs.mau.fi/bridges/go/discord/index.html>
|
- Documentation officielle de l’admin : <https://docs.mau.fi/bridges/go/discord/index.html>
|
||||||
|
|
|
@ -21,7 +21,7 @@ A puppeting bridge between Matrix and Discord packaged as a YunoHost service. Me
|
||||||
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
||||||
|
|
||||||
|
|
||||||
**Versión proporcionada:** 0.6.5~ynh2
|
**Versión proporcionada:** 0.6.5~ynh3
|
||||||
## Documentación e recursos
|
## Documentación e recursos
|
||||||
|
|
||||||
- Documentación oficial para admin: <https://docs.mau.fi/bridges/go/discord/index.html>
|
- Documentación oficial para admin: <https://docs.mau.fi/bridges/go/discord/index.html>
|
||||||
|
|
|
@ -21,7 +21,7 @@ A puppeting bridge between Matrix and Discord packaged as a YunoHost service. Me
|
||||||
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
**Attention: always backup and restore the Yunohost matrix_synapse et mautrix_discord apps together!**
|
||||||
|
|
||||||
|
|
||||||
**分发版本:** 0.6.5~ynh2
|
**分发版本:** 0.6.5~ynh3
|
||||||
## 文档与资源
|
## 文档与资源
|
||||||
|
|
||||||
- 官方管理文档: <https://docs.mau.fi/bridges/go/discord/index.html>
|
- 官方管理文档: <https://docs.mau.fi/bridges/go/discord/index.html>
|
||||||
|
|
|
@ -7,7 +7,7 @@ name = "Matrix-Discord bridge"
|
||||||
description.en = "Matrix / Synapse puppeting bridge for Discord"
|
description.en = "Matrix / Synapse puppeting bridge for Discord"
|
||||||
description.fr = "Passerelle Matrix / Synapse pour Discord"
|
description.fr = "Passerelle Matrix / Synapse pour Discord"
|
||||||
|
|
||||||
version = "0.6.5~ynh2"
|
version = "0.6.5~ynh3"
|
||||||
|
|
||||||
maintainers = ["fflorent"]
|
maintainers = ["fflorent"]
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,16 @@
|
||||||
|
|
||||||
APP_BIN=mautrix-discord
|
APP_BIN=mautrix-discord
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# PERSONAL HELPERS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
get_synapse_db_name() {
|
||||||
|
# Parameters: synapse instance identifier
|
||||||
|
# Returns: database name
|
||||||
|
ynh_app_setting_get --app="$1" --key=db_name
|
||||||
|
}
|
||||||
|
|
||||||
apply_permissions() {
|
apply_permissions() {
|
||||||
set -o noglob # Disable globbing to avoid expansions when passing * as value.
|
set -o noglob # Disable globbing to avoid expansions when passing * as value.
|
||||||
declare values="list$role"
|
declare values="list$role"
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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)
|
||||||
ynh_app_setting_set --app=$app --key=server_name --value=$server_name
|
ynh_app_setting_set --app=$app --key=server_name --value=$server_name
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
synapse_db_name="matrix_$synapse_instance"
|
synapse_db_name="$(get_synapse_db_name $synapse_instance)"
|
||||||
|
|
||||||
synapse_version=$(yunohost app info $synapse_instance | grep -oP "version:\s*\K.*")
|
synapse_version=$(yunohost app info $synapse_instance | grep -oP "version:\s*\K.*")
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
server_name=$(ynh_app_setting_get --app=$app --key=server_name)
|
server_name=$(ynh_app_setting_get --app=$app --key=server_name)
|
||||||
|
|
||||||
synapse_db_name="matrix_$synapse_instance"
|
synapse_db_name="$(get_synapse_db_name $synapse_instance)"
|
||||||
bot_synapse_db_user="@$botname:$server_name"
|
bot_synapse_db_user="@$botname:$server_name"
|
||||||
|
|
||||||
async_media=$(ynh_app_setting_get --app=$app --key=async_media)
|
async_media=$(ynh_app_setting_get --app=$app --key=async_media)
|
||||||
|
|
|
@ -11,7 +11,7 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
server_name=$(ynh_app_setting_get --app=$app --key=server_name)
|
server_name=$(ynh_app_setting_get --app=$app --key=server_name)
|
||||||
|
|
||||||
synapse_db_name="matrix_$synapse_instance"
|
synapse_db_name="$(get_synapse_db_name $synapse_instance)"
|
||||||
bot_synapse_db_user="@$botname:$server_name"
|
bot_synapse_db_user="@$botname:$server_name"
|
||||||
appserviceid=$app
|
appserviceid=$app
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue