diff --git a/scripts/_common.sh b/scripts/_common.sh index bc0deff..8872aa1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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" -} \ No newline at end of file +}