From 72e9e99bdc90073cd845915b08a7346018e05c92 Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 19 Jun 2019 02:40:23 +0200 Subject: [PATCH] [fix] Call of drush in upgrade --- check_process | 2 +- scripts/restore | 3 +++ scripts/upgrade | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index 219331e..1d0b743 100644 --- a/check_process +++ b/check_process @@ -4,7 +4,7 @@ ; Manifest domain="domain.tld" (DOMAIN) path="/path" (PATH) - password="bibopP5" (PASSWORD) + password="password" is_public=1 (PUBLIC|public=1|private=0) ; Checks pkg_linter=1 diff --git a/scripts/restore b/scripts/restore index 1f02e15..ee9dcde 100644 --- a/scripts/restore +++ b/scripts/restore @@ -62,6 +62,9 @@ ynh_restore # Restore permissions on app files chown -R root: $final_path +chmod 2775 "$final_path/sites/default/files" +chown -R $app: "${final_path}_private" +chmod 775 "${final_path}_private" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 5666953..b142e8f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -154,6 +154,7 @@ ynh_script_progression --message="Upgrading Drupal..." --weight=1 ynh_backup_if_checksum_is_different --file="$final_path/$app/sites/default/settings.php" +pushd $final_path sudo -u $app $final_path/.composer/vendor/bin/drush @$app variable-set --exact maintenance_mode 1 sudo -u $app $final_path/.composer/vendor/bin/drush @$app cache-clear all sudo -u $app $final_path/.composer/vendor/bin/drush @$app pm-update -y drupal @@ -161,6 +162,7 @@ sudo -u $app $final_path/.composer/vendor/bin/drush @$app vset --exact maintenan sudo -u $app $final_path/.composer/vendor/bin/drush @$app cache-clear all sudo -u $app $final_path/.composer/vendor/bin/drush @$app l10n-update-refresh sudo -u $app $final_path/.composer/vendor/bin/drush @$app l10n-update +popd #=================================================