From 29fef6d0a7dc7b2c0cb2f2f35ebf3958e3739a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 14 Jul 2024 17:20:14 +0200 Subject: [PATCH] fix upgrade --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 11cab9f..048dae4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -23,7 +23,7 @@ else fi if [ "$upgrade_to_yakforms" = true ]; then - pushd "$install_dir" + pushd "$install_dir/app" ynh_setup_source --source_id="migration_script" --dest_dir="$install_dir/app" ynh_exec_as "$app" env "PATH=$PATH" "php$phpversion" framaforms2yakforms.php backup _ynh_exec_with_drush_php drush "@$app" dis framaforms @@ -63,7 +63,7 @@ ynh_install_composer --phpversion="$phpversion" --workdir="$install_dir/.compose #================================================= if [ "$upgrade_to_yakforms" = true ]; then - pushd "$install_dir" + pushd "$install_dir/app" _ynh_exec_with_drush_php drush "@$app" en yakforms _ynh_exec_with_drush_php drush "@$app" dis yakforms_share_results _ynh_exec_with_drush_php drush "@$app" dis yakforms_public_results @@ -83,7 +83,7 @@ ynh_backup_if_checksum_is_different --file="$install_dir/app/sites/default/setti # Chown from composer/drush install chown -R "$app:www-data" "$install_dir" -pushd "$install_dir" +pushd "$install_dir/app" _ynh_exec_with_drush_php drush "@$app" variable-set --exact maintenance_mode 1 _ynh_exec_with_drush_php drush "@$app" cache-clear all # _ynh_exec_with_drush_php drush "@$app" pm-update -y drupal