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:
parent
30491d2954
commit
b187cab540
1 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,15 @@
|
||||||
#!/bin/bash
|
#!/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
|
# CONFIG PANEL SETTERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -56,4 +66,4 @@ set__listadmin() {
|
||||||
ynh_app_setting_set --app=$app --key=listadmin --value="$listadmin"
|
ynh_app_setting_set --app=$app --key=listadmin --value="$listadmin"
|
||||||
apply_permissions
|
apply_permissions
|
||||||
ynh_store_file_checksum --file="$install_dir/config.yaml"
|
ynh_store_file_checksum --file="$install_dir/config.yaml"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue