diff --git a/scripts/install b/scripts/install index 3c4ffe7..c2d959d 100644 --- a/scripts/install +++ b/scripts/install @@ -91,6 +91,10 @@ 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 --source_id="$architecture" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # CREAT DIRECTORIES #================================================= @@ -169,10 +173,8 @@ ynh_add_nginx_config # SECURE FILES AND DIRECTORIES #================================================= -chown -R $app: "$final_path" chown -R $app: "/home/$app" chown -R $app: "/var/log/$app" -#chmod u=rwX,g=rX,o= "$final_path" chmod u=rwX,g=rX,o= "/home/$app" chmod u=rwX,g=rX,o= "/var/log/$app"