mirror of
https://github.com/YunoHost-Apps/discourse_ynh.git
synced 2024-09-03 18:26:18 +02:00
Fix #115
This commit is contained in:
parent
ed1784156c
commit
19a414c24c
4 changed files with 4 additions and 2 deletions
|
@ -193,7 +193,7 @@ connection_reaper_interval = 30
|
||||||
# set to relative URL (for subdirectory hosting)
|
# set to relative URL (for subdirectory hosting)
|
||||||
# IMPORTANT: path must not include a trailing /
|
# IMPORTANT: path must not include a trailing /
|
||||||
# EG: /forum
|
# EG: /forum
|
||||||
relative_url_root = "__PATH__"
|
relative_url_root = "__RELATIVE_URL_ROOT__"
|
||||||
|
|
||||||
# increasing this number will increase redis memory use
|
# increasing this number will increase redis memory use
|
||||||
# this ensures backlog (ability of channels to catch up are capped)
|
# this ensures backlog (ability of channels to catch up are capped)
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Discussion platform",
|
"en": "Discussion platform",
|
||||||
"fr": "Plateforme de discussion"
|
"fr": "Plateforme de discussion"
|
||||||
},
|
},
|
||||||
"version": "2.7.13~ynh3",
|
"version": "2.7.13~ynh4",
|
||||||
"url": "http://Discourse.org",
|
"url": "http://Discourse.org",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
|
|
|
@ -140,6 +140,7 @@ ynh_script_progression --message="Adding a configuration file..."
|
||||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
redis_db=$(ynh_redis_get_free_db)
|
redis_db=$(ynh_redis_get_free_db)
|
||||||
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
ynh_app_setting_set --app="$app" --key=redis_db --value="$redis_db"
|
||||||
|
relative_url_root=${path_url%/}
|
||||||
|
|
||||||
ynh_add_config --template="../conf/discourse_defaults.conf" --destination="$final_path/config/discourse.conf"
|
ynh_add_config --template="../conf/discourse_defaults.conf" --destination="$final_path/config/discourse.conf"
|
||||||
|
|
||||||
|
|
|
@ -206,6 +206,7 @@ then
|
||||||
ynh_script_progression --message="Updating a config file..."
|
ynh_script_progression --message="Updating a config file..."
|
||||||
|
|
||||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
|
relative_url_root=${path_url%/}
|
||||||
ynh_add_config --template="../conf/discourse_defaults.conf" --destination="$final_path/config/discourse.conf"
|
ynh_add_config --template="../conf/discourse_defaults.conf" --destination="$final_path/config/discourse.conf"
|
||||||
|
|
||||||
ynh_add_config --template="../conf/settings.yml" --destination="$final_path/plugins/discourse-ldap-auth/config/settings.yml"
|
ynh_add_config --template="../conf/settings.yml" --destination="$final_path/plugins/discourse-ldap-auth/config/settings.yml"
|
||||||
|
|
Loading…
Reference in a new issue