From 80940cf2fa4d65629ddf0f4917e5855f457b07be Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 8 May 2022 22:49:26 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 2 +- scripts/install | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index dda980f..df9bbf4 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,7 @@ location __PATH__/ { # Path to source alias __FINALPATH__/ ; - index index.php tinyfilemanager.php; + index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 10G; diff --git a/scripts/install b/scripts/install index 5eac45e..c206dec 100755 --- a/scripts/install +++ b/scripts/install @@ -79,6 +79,9 @@ 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" +# Rename tinyfilemanager to index +mv $final_path/tinyfilemanager.php $final_path/index.php + chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path"