From 6378be00686bd1a18258df49224512365d1834d4 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 10 Apr 2021 23:28:14 +0200 Subject: [PATCH] Apply last example_ynh --- check_process | 2 +- scripts/install | 5 +++-- scripts/upgrade | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/check_process b/check_process index 8c11094..9b4c909 100644 --- a/check_process +++ b/check_process @@ -16,7 +16,7 @@ setup_public=1 upgrade=1 # 8.7.1~ynh1 - # upgrade=1 from_commit=f0af5b7a8e58615fe8ad73e3c1d6fe8d1369f061 + #upgrade=1 from_commit=f0af5b7a8e58615fe8ad73e3c1d6fe8d1369f061 # 8.9.7~ynh1 upgrade=1 from_commit=08ca36cc16691ed64a11034c810f5adefb21186a backup_restore=1 diff --git a/scripts/install b/scripts/install index bf55c3b..6532b5d 100644 --- a/scripts/install +++ b/scripts/install @@ -151,8 +151,6 @@ export PATH="$final_path/vendor/bin:$PATH" #================================================= ynh_script_progression --message="Installing Drupal..." -chown -R $app: $final_path - update-alternatives --set php /usr/bin/php$phpversion pushd "$final_path" @@ -176,6 +174,9 @@ ynh_script_progression --message="Storing the config file checksum..." # Calculate and store the config file checksum into the app settings ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php" +chmod 400 "$final_path/$app/sites/default/settings.php" +chown $app:$app "$final_path/$app/sites/default/settings.php" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fee3502..bf0c66d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -139,6 +139,9 @@ ynh_script_progression --message="Storing the config file checksum..." # Recalculate and store the checksum of the file for the next upgrade. ynh_store_file_checksum --file="$final_path/$app/sites/default/settings.php" +chmod 400 "$final_path/$app/sites/default/settings.php" +chown $app:$app "$final_path/$app/sites/default/settings.php" + #================================================= # SETUP THE CRON FILE #=================================================