1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Use ynh_return instead of echo

Co-Authored-By: Kayou <pierre.moltess@gmail.com>
This commit is contained in:
Josue-T 2019-11-28 22:44:05 +01:00 committed by GitHub
parent 78ddcb1703
commit 36d89e888d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ is_public=$(ynh_app_setting_get --app $app --key is_public)
show_config() {
# here you are supposed to read some config file/database/other then print the values
# echo "YNH_CONFIG_${PANEL_ID}_${SECTION_ID}_${OPTION_ID}=value"
echo "YNH_CONFIG_SYNAPSE_CONFIG_SERVER_CONFIG_SERVER_STATISTICS=$report_stats" >> $YNH_STDRETURN
ynh_return "YNH_CONFIG_SYNAPSE_CONFIG_SERVER_CONFIG_SERVER_STATISTICS=$report_stats"
echo "YNH_CONFIG_SYNAPSE_CONFIG_SERVER_CONFIG_ALLOW_PUBLIC_ROOMS=$allow_public_rooms" >> $YNH_STDRETURN
if [[ ${backup_before_upgrade:-0} -eq 1 ]]