From 0db0fabd27473a319883c95aa6454f909a6dfb23 Mon Sep 17 00:00:00 2001 From: Tagada <36127788+Tagadda@users.noreply.github.com> Date: Fri, 21 May 2021 15:37:39 +0200 Subject: [PATCH] Create `files` folder BEFORE setting permissions --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index d29bea8..230c2e9 100644 --- a/scripts/install +++ b/scripts/install @@ -148,13 +148,13 @@ export PATH="$final_path/.composer/vendor/bin:$PATH" #================================================= ynh_script_progression --message="Initializing tmp and private directory..." --weight=1 +mkdir -p "$final_path/app/sites/default/files" +mkdir -p "$final_path/app/sites/default/files/tmp" + chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" - -mkdir -p "$final_path/app/sites/default/files" chmod 2775 "$final_path/app/sites/default/files" -mkdir -p "$final_path/app/sites/default/files/tmp" #================================================= # CREATE DATA DIRECTORY