1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh.git synced 2024-09-03 19:46:01 +02:00

Update _common.sh

Add helper for getting synapse DB name
This commit is contained in:
CodeShakingSheep 2024-05-27 13:48:05 -05:00 committed by GitHub
parent bdb2753874
commit 04aec44733
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,15 @@
#!/bin/bash
#=================================================
# PERSONAL HELPERS
#=================================================
get_synapse_db_name() {
# Parameters: synapse instance identifier
# Returns: database name
ynh_app_setting_get --app="$1" --key=db_name
}
#=================================================
# CONFIG PANEL SETTERS
#=================================================
@ -56,4 +66,4 @@ set__listadmin() {
ynh_app_setting_set --app=$app --key=listadmin --value="$listadmin"
apply_permissions
ynh_store_file_checksum --file="$install_dir/config.yaml"
}
}