diff --git a/scripts/_common.sh b/scripts/_common.sh index 8a31c04..674ce8d 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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"