From c90c37161e536b16dc9e77c8fa99b4078e30b4bc Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 14 Apr 2021 19:59:21 +0200 Subject: [PATCH] Fix install --- scripts/install | 4 ++++ scripts/upgrade | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/scripts/install b/scripts/install index a49069f..d3bc6e9 100644 --- a/scripts/install +++ b/scripts/install @@ -151,6 +151,10 @@ export PATH="$final_path/vendor/bin:$PATH" #================================================= ynh_script_progression --message="Installing Drupal..." +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + update-alternatives --set php /usr/bin/php$phpversion pushd "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 65b4063..cb2a712 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -131,6 +131,10 @@ ynh_script_progression --message="Upgrading Drupal..." ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php" +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + update-alternatives --set php /usr/bin/php$phpversion pushd "$final_path"