From d4627eb9a16fb70089a5fe7ef8a86b9f2ed9f791 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 11 Jul 2020 23:45:16 +0200 Subject: [PATCH] permissions --- scripts/install | 5 ++--- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index 21c5c07..d2d49b8 100644 --- a/scripts/install +++ b/scripts/install @@ -58,7 +58,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_script_progression --message="Setting up source files..." --weight=4 # Download, check integrity, uncompress and patch the source from app.src -# For this app sources are in app subdirectory ynh_setup_source "$final_path" #================================================= @@ -67,8 +66,8 @@ ynh_setup_source "$final_path" # SECURE FILES AND DIRECTORIES #================================================= -# Set permissions to phpsysinfo directory -chown -R www-data: "$final_path" +# Restore permissions on app files +chown -R www-data:www-data "$final_path" #================================================= # NGINX CONFIGURATION diff --git a/scripts/restore b/scripts/restore index c5e263e..6371596 100644 --- a/scripts/restore +++ b/scripts/restore @@ -56,7 +56,7 @@ ynh_restore_file --origin_path="$final_path" #================================================= # Restore permissions on app files -chown -R www-data: $final_path +chown -R www-data:www-data "$final_path" #================================================= # GENERIC FINALIZATION diff --git a/scripts/upgrade b/scripts/upgrade index c5d1646..afb6b80 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,7 +100,7 @@ ynh_add_nginx_config #================================================= # Set permissions on app files -chown -R www-data: $final_path +chown -R www-data:www-data "$final_path" #================================================= # RELOAD NGINX