From 002c6b1d449a346525d1b09b87c57081317698f6 Mon Sep 17 00:00:00 2001 From: Rodolphe Robles Date: Tue, 7 Apr 2020 18:32:12 +0200 Subject: [PATCH] try to make possible install on root path and change url from or to root path --- conf/nginx.conf | 2 +- scripts/install | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 5292783..3b36f07 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -8,7 +8,7 @@ location __PATH__ { } # Example PHP configuration (remove if not used) - index index.php; + # index index.php; # Common parameter to increase upload size limit in conjuction with dedicated php-fpm file #client_max_body_size 50M; diff --git a/scripts/install b/scripts/install index 32c262b..10c1b7e 100644 --- a/scripts/install +++ b/scripts/install @@ -91,9 +91,9 @@ ynh_replace_string --match_string="const PREFER_HTTPS = false;" --replace_string if $path_url != / then - ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php" + ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.local.php" else - ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.local.php" + ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url';" --target_file="$final_path/config.local.php" fi #================================================= # Files owned by user app