From 727ef3519c7a5a21f1b142c13a1b91b30f756786 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 10 May 2020 11:16:00 +0200 Subject: [PATCH] fix --- conf/nginx.conf | 16 ++++++++-------- scripts/install | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 11cb4b2..bc3fa3d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,14 +1,14 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - # Path to source - alias __FINALPATH__/ ; + # Path to source + alias __FINALPATH__/ ; - # Force usage of https - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } + # Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; } \ No newline at end of file diff --git a/scripts/install b/scripts/install index c560a3e..c16b8d1 100755 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,8 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" +chown -R www-data: $final_path + #================================================= # NGINX CONFIGURATION #=================================================