From c7cb41300bb5f55882dc61e2a4ab39060d40e3d1 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Jun 2021 18:14:22 +0200 Subject: [PATCH] Fix --- conf/nginx.conf | 2 +- scripts/install | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index bf3d925..c9a959d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -9,7 +9,7 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - index player.html index.htm; + index index.html; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; diff --git a/scripts/install b/scripts/install index f4e6113..ec138d9 100644 --- a/scripts/install +++ b/scripts/install @@ -54,10 +54,10 @@ ynh_app_setting_set --app=$app --key=path --value=$path_url #================================================= # CREATE DEDICATED USER #================================================= -# ynh_script_progression --message="Configuring system user..." --weight=1 +ynh_script_progression --message="Configuring system user..." --weight=1 -# # Create a system user -# ynh_system_user_create --username=$app --home_dir="$final_path" +# Create a system user +ynh_system_user_create --username=$app --home_dir="$final_path" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -68,9 +68,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" -chmod 754 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R www-data:www-data "$final_path" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" #================================================= # NGINX CONFIGURATION