1
0
Fork 0
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:
CodeShakingSheep 2024-07-03 13:20:11 -05:00 committed by GitHub
parent 206b62e720
commit 6156e9bbdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"