mirror of
https://github.com/YunoHost-Apps/mautrix_discord_ynh.git
synced 2024-09-03 19:36:35 +02:00
Update _common.sh
Add helper for getting synapse DB name
This commit is contained in:
parent
206b62e720
commit
6156e9bbdd
1 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,16 @@
|
|||
|
||||
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() {
|
||||
set -o noglob # Disable globbing to avoid expansions when passing * as value.
|
||||
declare values="list$role"
|
||||
|
|
Loading…
Add table
Reference in a new issue