From 0039c3672039cb920f328ed9c565eb2120d7f681 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Wed, 30 Jan 2019 22:58:20 +0100 Subject: [PATCH] Correct nginx conf --- manifest.json | 2 +- scripts/upgrade | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index fbf956c..783924c 100644 --- a/manifest.json +++ b/manifest.json @@ -58,7 +58,7 @@ "fr": "Est-ce une application publique ?" }, "help":{ - "en":"No will set the library in /home/yunohost.multimedia/admin/eBook, but if you set thje library as public", + "en":"No will set the library in /home/yunohost.multimedia/admin/eBook, except if you set the library as public", "fr":"Non parametrera la bibliothèque pour /home/yunohost.multimedia/admin/eBook sauf si la bibliothèque est également publique" }, "default": false diff --git a/scripts/upgrade b/scripts/upgrade index e77ea9d..0c037a6 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -68,6 +68,10 @@ ynh_setup_source "$final_path" # NGINX CONFIGURATION #================================================= +if [ $path_url = "/" ] ; then + ynh_replace_string " proxy_set_header X-Script-Name" "# proxy_set_header X-Script-Name" ../conf/nginx.conf +fi + # Create a dedicated nginx config ynh_add_nginx_config