mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
typos
This commit is contained in:
parent
f82359b2e5
commit
87fa0e3eb9
4 changed files with 13 additions and 14 deletions
|
@ -127,7 +127,6 @@ services = ["matrix-__APP__", "nginx"]
|
||||||
ask = "Largest allowed media upload size in bytes."
|
ask = "Largest allowed media upload size in bytes."
|
||||||
type = "string"
|
type = "string"
|
||||||
help = "Defaults to: '10M' ."
|
help = "Defaults to: '10M' ."
|
||||||
bind = ":/etc/matrix-__APP__/homeserver.yaml"
|
|
||||||
|
|
||||||
[advanced]
|
[advanced]
|
||||||
name = "Advanced Settings"
|
name = "Advanced Settings"
|
||||||
|
|
|
@ -19,7 +19,7 @@ get__max_upload_size() {
|
||||||
|
|
||||||
set__max_upload_size() {
|
set__max_upload_size() {
|
||||||
ynh_write_var_in_file --file=/etc/matrix-$app/homeserver.yaml --key=max_upload_size --value="${max_upload_size}"
|
ynh_write_var_in_file --file=/etc/matrix-$app/homeserver.yaml --key=max_upload_size --value="${max_upload_size}"
|
||||||
sed -i -r "s|client_max_body_size\s+[[:digit:]]+M;|client_max_body_size ${max_upload_size}M;|g" "/etc/nginx/conf.d/$domain.d/$app.conf
|
sed -i -r "s|client_max_body_size\s+[[:digit:]]+M;|client_max_body_size ${max_upload_size}M;|g" "/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||||
ynh_add_nginx_conf
|
ynh_add_nginx_conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -118,10 +118,7 @@ if yunohost --output-as plain app list | grep -q "^$element_instance$"; then
|
||||||
element_domain=$(ynh_app_setting_get --app $element_instance --key domain)
|
element_domain=$(ynh_app_setting_get --app $element_instance --key domain)
|
||||||
element_path=$(ynh_app_setting_get --app $element_instance --key path)
|
element_path=$(ynh_app_setting_get --app $element_instance --key path)
|
||||||
element_ynh_url="https://""$element_domain""$element_path"
|
element_ynh_url="https://""$element_domain""$element_path"
|
||||||
#if [ -z "$element_domain" ]; then
|
|
||||||
# element_ynh_url="https://matrix.to/"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
web_client_location=$element_ynh_url
|
web_client_location=$element_ynh_url
|
||||||
client_base_url=$element_ynh_url
|
client_base_url=$element_ynh_url
|
||||||
invite_client_location=$element_ynh_url
|
invite_client_location=$element_ynh_url
|
||||||
|
|
|
@ -229,24 +229,27 @@ fi
|
||||||
# SET STANDARD SETTINGS FROM DEFAULT CONFIG
|
# SET STANDARD SETTINGS FROM DEFAULT CONFIG
|
||||||
|
|
||||||
# Get app name of first Element Instance
|
# Get app name of first Element Instance
|
||||||
|
element_ynh_url="https://matrix.to/"
|
||||||
|
element_domain=""
|
||||||
|
element_path=""
|
||||||
|
web_client_location=$element_ynh_url
|
||||||
|
client_base_url=$element_ynh_url
|
||||||
|
invite_client_location=$element_ynh_url
|
||||||
|
element_instance="element"
|
||||||
if [ -z "$web_client_location" ]
|
if [ -z "$web_client_location" ]
|
||||||
then
|
then
|
||||||
element_ynh_url="https://matrix.to/"
|
|
||||||
element_instance="element"
|
|
||||||
if yunohost --output-as plain app list | grep -q "^$element_instance"'$'; then
|
if yunohost --output-as plain app list | grep -q "^$element_instance"'$'; then
|
||||||
element_domain=$(ynh_app_setting_get --app $element_instance --key domain)
|
element_domain=$(ynh_app_setting_get --app $element_instance --key domain)
|
||||||
element_path=$(ynh_app_setting_get --app $element_instance --key path)
|
element_path=$(ynh_app_setting_get --app $element_instance --key path)
|
||||||
#if [ -z "$element_domain" ]; then
|
|
||||||
#else
|
|
||||||
element_ynh_url="https://""$element_domain""$element_path"
|
element_ynh_url="https://""$element_domain""$element_path"
|
||||||
fi
|
fi
|
||||||
web_client_location=$element_ynh_url
|
web_client_location=$element_ynh_url
|
||||||
client_base_url=$element_ynh_url
|
client_base_url=$element_ynh_url
|
||||||
invite_client_location=$element_ynh_url
|
invite_client_location=$element_ynh_url
|
||||||
|
ynh_app_setting_set --app=$app --key=web_client_location --value=$web_client_location
|
||||||
|
ynh_app_setting_set --app=$app --key=client_base_url --value=$client_base_url
|
||||||
|
ynh_app_setting_set --app=$app --key=invite_client_location --value=$invite_client_location
|
||||||
fi
|
fi
|
||||||
ynh_app_setting_set --app=$app --key=web_client_location --value=$web_client_location
|
|
||||||
ynh_app_setting_set --app=$app --key=client_base_url --value=$client_base_url
|
|
||||||
ynh_app_setting_set --app=$app --key=invite_client_location --value=$invite_client_location
|
|
||||||
|
|
||||||
if [ -z "$server_statistics" ]
|
if [ -z "$server_statistics" ]
|
||||||
then
|
then
|
||||||
|
@ -255,12 +258,12 @@ then
|
||||||
fi
|
fi
|
||||||
if [ -z "$allow_public_rooms_without_auth" ]
|
if [ -z "$allow_public_rooms_without_auth" ]
|
||||||
then
|
then
|
||||||
allow_public_rooms_without_auth=allow_public_rooms
|
allow_public_rooms_without_auth=$allow_public_rooms
|
||||||
ynh_app_setting_set --app=$app --key=allow_public_rooms_without_auth --value=$allow_public_rooms_without_auth
|
ynh_app_setting_set --app=$app --key=allow_public_rooms_without_auth --value=$allow_public_rooms_without_auth
|
||||||
fi
|
fi
|
||||||
if [ -z "$allow_public_rooms_over_federation" ]
|
if [ -z "$allow_public_rooms_over_federation" ]
|
||||||
then
|
then
|
||||||
allow_public_rooms_over_federation=allow_public_rooms
|
allow_public_rooms_over_federation=$allow_public_rooms
|
||||||
ynh_app_setting_set --app=$app --key=allow_public_rooms_over_federation --value=$allow_public_rooms_over_federation
|
ynh_app_setting_set --app=$app --key=allow_public_rooms_over_federation --value=$allow_public_rooms_over_federation
|
||||||
fi
|
fi
|
||||||
if [ -z "$max_upload_size" ]
|
if [ -z "$max_upload_size" ]
|
||||||
|
|
Loading…
Add table
Reference in a new issue