From 96978b0642688a27b7e013545667654f2fa4b764 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 26 Feb 2019 23:58:19 +0100 Subject: [PATCH] Fix with the new install method --- conf/nginx.conf | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index eeb9a51..b7dc034 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,6 +1,6 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - alias __FINALPATH__/app/; + alias __FINALPATH__/; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; diff --git a/scripts/install b/scripts/install index 59fb85a..9fdf10c 100644 --- a/scripts/install +++ b/scripts/install @@ -63,7 +63,7 @@ ynh_app_setting_set $app final_path $final_path # To avoid a complete rebuild, I downloaded the gh-pages as explained here: https://github.com/keeweb/keeweb#self-hosting # and put all files in "../sources/extra_files/app/", like that I can assure the version install in YunoHost is the version described in the manifest mkdir -p "$final_path" -cp ../sources/extra_files/app/* "$final_path" +cp -r ../sources/extra_files/app/* "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 0be9abb..60ef9d6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -75,7 +75,7 @@ ynh_maintenance_mode_ON #================================================= mkdir -p "$final_path" -cp ../sources/extra_files/app/* "$final_path" +cp -r ../sources/extra_files/app/* "$final_path" #================================================= # NGINX CONFIGURATION